Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Show Totals On Top Cart Rate Topic   - - - - -

 
  • lsublimes
  • Member
  • Members
  • Join Date: 09-Jul 18
  • 16 posts

Posted 30 April 2019 - 03:07 PM #1

Hi,
Is possible to show totals in the top cart content?
I have tried copy the code of the cart content but I have the result in the attached image.

Any solution?

Best regards

Attached Thumbnails

  • Sem Título.jpg


 
  • unteim
  • Newbie
  • Authorized Reseller
  • Join Date: 30-Apr 19
  • 1 posts

Posted 30 April 2019 - 05:18 PM #2

Hello,

 

You should use the {$smarty.session.cart.subtotal} and {$smarty.session.cart.total} variables on the code for displaying the right values.



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 662 posts

Posted 02 May 2019 - 08:20 PM #3

Hello

 

I think that you should connect with smarty hook "checkout:minicart_product". This hook is located in file /design/themes/responsive/templates/blocks/cart_content.tpl

There you can easily get information about the basket from the session.

 

Best regards

Robert 


Team of SoftSolid
cs-cart.pl

 
  • lsublimes
  • Member
  • Members
  • Join Date: 09-Jul 18
  • 16 posts

Posted 03 May 2019 - 10:34 AM #4

Question solved,
 
I put the following code:

<div class="ty-cart-total">
   <ul class="ty-cart-statistic__total-list" style="margin-top: 0;padding: 10px 20px;">
      <li class="ty-cart-statistic__item ty-cart-statistic__total" style="padding: 0;font-size: 18px;">
         <span class="ty-cart-statistic__total-title">{__("cart_subtotal")}</span>
         <span class="ty-cart-statistic__total-value" style="width: 100px;">{include file="common/price.tpl" value=$smarty.session.cart.display_subtotal}</span>
      </li>
    </ul>
</div>