Jump to content

Order Summary Show Other Pages


FlyHost

Recommended Posts

there's no default way to do this... and it really depends *exactly* what you want to show in the header.

 

you could possibly tweak one of the Data Feeds to do it (cart total or cart items) - or you could modify the header.tpl template directly (or perhaps with the help of an action hook), to show the information you want.

 

depending on what you want to show, you may just need to query the session variable.

Link to comment
Share on other sites

if using a feed, you could change the code below in header.tpl...

 

            <!-- Shopping Cart -->
           <div class="pull-right nav">
               <a href="{$WEB_ROOT}/cart.php?a=view" class="quick-nav"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">{$LANG.viewcart} (</span><span id="cartItemCount">{$cartitemcount}</span><span class="hidden-xs">)</span></a>
           </div>

to...

 

            <!-- Shopping Cart -->
           <div class="pull-right nav">
               <a href="{$WEB_ROOT}/cart.php?a=view" class="quick-nav"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">{$LANG.viewcart} (</span><span id="cartItemCount">{$cartitemcount} - <script language="javascript" src="feeds/carttotal.php"></script></span><span class="hidden-xs">)</span></a>
           </div>

 

GPGcE05.png

it should work fine, although you might occasionally lose it during domain ordering as WHMCS v7 uses jQuery to rewrite the span - so if that is an issue, you will likely need to tweak the cart js too.

Link to comment
Share on other sites

if using a feed, you could change the code below in header.tpl...

 

            <!-- Shopping Cart -->
           <div class="pull-right nav">
               <a href="{$WEB_ROOT}/cart.php?a=view" class="quick-nav"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">{$LANG.viewcart} (</span><span id="cartItemCount">{$cartitemcount}</span><span class="hidden-xs">)</span></a>
           </div>

to...

 

            <!-- Shopping Cart -->
           <div class="pull-right nav">
               <a href="{$WEB_ROOT}/cart.php?a=view" class="quick-nav"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">{$LANG.viewcart} (</span><span id="cartItemCount">{$cartitemcount} - <script language="javascript" src="feeds/carttotal.php"></script></span><span class="hidden-xs">)</span></a>
           </div>

 

GPGcE05.png

it should work fine, although you might occasionally lose it during domain ordering as WHMCS v7 uses jQuery to rewrite the span - so if that is an issue, you will likely need to tweak the cart js too.

 

 

How can I hookla instead of script?

Link to comment
Share on other sites

How can I hookla instead of script?

I think if you didn't want to edit any template and wanted to use an action hook instead (and keep the existing Six design), about the only way to do it would be to rewrite the value of {$cartitemcount}... and i'm not even sure if that would work 100%

Link to comment
Share on other sites

I think if you didn't want to edit any template and wanted to use an action hook instead (and keep the existing Six design), about the only way to do it would be to rewrite the value of {$cartitemcount}... and i'm not even sure if that would work 100%

 

 

Would you say the foreach code in order to list the products in your shopping cart?

Link to comment
Share on other sites

you won't easily be able to list the products in the cart as I think the session array only stores their product IDs and NOT their product names.... with an ID value, you could use the API or query the database to get the product name.

 

Now, if I make boxes in the title section, can not I show the items that are added to the box section?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated