Jump to content

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

Little Help With Sold Amount Rate Topic   - - - - -

 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3176 posts

Posted 02 March 2018 - 07:22 AM #1

This

{$product.sales_amount}

prints how many times product was sold in product details page. How to do a condition

 

if sold > 1 pint {$product.sales_amount} if less then - or 0

 

Thank you



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

Posted 02 March 2018 - 12:53 PM #2

Try

{$product.sales_amount|default:'-'}

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    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3176 posts

Posted 02 March 2018 - 01:24 PM #3

Thank you for your help

 

 

Try

{$product.sales_amount|default:'-'}