Jump to content

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

Smarty Math ? Rate Topic   - - - - -

 
  • user2008
  • Member
  • Members
  • Join Date: 17-Jan 08
  • 91 posts

Posted 02 January 2020 - 11:40 AM #1

In summary.tpl

 

{$product.amount} x {include file="common/price.tpl" value=$product.display_price}

 

It shows text  for 2 pcs product   as  "  2 x 100 ".

 

But I need to show sub total  as  200

 

is it possible? multiply variables?

 

{$product.amount}   and

{include file="common/price.tpl" value=$product.display_price}

 

How to show multiplication?

 

edit:

 

solution :

{include file="common/price.tpl" value=$product.display_subtotal}



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19982 posts

Posted 05 January 2020 - 07:01 AM #2

Use

{include file="common/price.tpl" value=$product.display_price*$product.amount}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)