Jump to content

[SOLVED] How to show how many items in my basket?


Recommended Posts

Hi,

 

At the moment when I add something to my basket I get the following:

 

£29.73 (empty)

 

I would like it just to say:

 

(1)

 

here is my current code:

 

<!-- Block user information module HEADER -->
<div id="header_user">

   <ul id="header_nav">
       {if !$PS_CATALOG_MODE}
       <li id="shopping_cart">
           <a href="{$link->getPageLink("$order_process.php", true)}" title="{l s='My Basket' mod='blockuserinfo'}">{l s='My Basket' mod='blockuserinfo'}
           <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(0)' mod='blockuserinfo'}</span></a>
           {if $cart_qties >= 0}
               <span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}">
                   {if $priceDisplay == 1}
                       {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
                       {convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}
                   {else}
                       {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
                       {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}
                   {/if}
               </span>
           {/if}
           <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span>
       </li>
       {/if}
       <li id="your_account"><a href="{$link->getPageLink('my-account.php', true)}" title="{l s='Sign in or Join us' mod='blockuserinfo'}">{l s='Sign in or Join us' mod='blockuserinfo'}</a></li>
   </ul>
</div>
<!-- /Block user information module HEADER -->

Link to comment
Share on other sites

Hi,

 

I switched back to the Prestashop theme and it doesn't show how many items in the basket, it just shows the cost

 

The theme still looks somewhat customized compared the the clean default theme. What version of PrestaShop are you using? I would like to provide you with a clean copy of the theme so that we can properly test this.

 

-Mike

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...