Jump to content

[PS 1.6] Show HTML string if discounts exist


Recommended Posts

6 hours ago, tantan199 said:

Try this one

{if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}One sale{/if}



I tried that and it threw this error:

Fatal error: Cannot use object of type Product as array in /home/xxxxx/public_html/xxxxx/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 61


I actually wanted it in my mega menu module and when I put it in there I get:

Notice: Undefined index: product in /home/xxxxx/public_html/xxxx/cache/smarty/compile/1b/97/2b/1b972be53e916c5c7decc7d16256cdba7f3e2a08.file.iqitmegamenu.tpl.php on line 61


Anything else?

Edited by 5haun (see edit history)
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...