X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Move Mini cart total from H2 tag? (https://forum.x-cart.com/showthread.php?t=59922)

believein 06-23-2011 09:44 AM

Move Mini cart total from H2 tag?
 
Hi,

Im not sure why it is there - but my cart total is nested inside the title-bar div and H2 tag.

Why is it here? Can it be moved?

Shouldn't it be within the content div?

HTML Code:


<div class="menu-dialog menu-minicart ajax-minicart full">
      <div class="title-bar ">
              <h2>
                    <div class="minicart">
                            <div class="valign-middle full"> TOTAL IS HERE</div>
                    </div>
              </h2>
    </div>
    <div class="content">
            SHOULDN'T IT BE HERE?
            <div class="cart-checkout-links">
            <hr class="minicart" />
            <ul>
                    <li><a href="cart.php">View cart</a></li>
                  <li><a href="cart.php?mode=checkout">Checkout</a></li>
            </ul>
    </div>


believein 06-27-2011 07:03 AM

Re: Move Mini cart total from H2 tag?
 
Am I the only person who thinks this? :)

balinor 06-27-2011 07:15 AM

Re: Move Mini cart total from H2 tag?
 
So move it :)

believein 06-27-2011 07:36 AM

Re: Move Mini cart total from H2 tag?
 
Hi balinor,

Thanks for responding.

Im a little puzzled as to which tpl I need to alter..

As far as I can see the structure is;

left_bar >
menu_cart.tpl >
ajax.minicart.tpl (just javascript) & cart_checkout_links.tpl (just the links)

Is the cart generated from the javascript?

balinor 06-27-2011 07:45 AM

Re: Move Mini cart total from H2 tag?
 
Use webmaster mode, it will tell you exactly what template is what.

believein 06-27-2011 08:19 AM

Re: Move Mini cart total from H2 tag?
 
Well in case anyone is interested. You have to remove the total from the file called minicart_total.tpl as anything in there will be put in the H2 tag.

I basically moved the whole "<div class="minicart">" into its parent menu_cart.tpl

Not perfect but seems to work.


All times are GMT -8. The time now is 02:47 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.