How to display discount-label in any block on frontpage?

Hello everyone,



I have a question about displaying discount-label in any block on frontpage.



For example I want to display discount-label in Product of day block and Featured products block.



I’ve created a image how it should look on basic skin.







Can anyone help me please?..:confused:



Thanks a lot.

Would help if you told us what version you’re running.



Essentially, you’re going to look for the parameter named ‘show_list_discount’ in the “include” statment for the product list that you’re using. This will vary by the block ‘Appearance’ you’ve selected. Change “show_list_discount=false” to “show_list_discount=true”.

Thank you for reply. I’ll try it now.



I’m using CS-Cart 2.1.2.



I already tried in basic\customer\blocks\products.tpl , but nothing happens.





```php {include file=“blocks/product_list_templates/products.tpl”

products=$items no_sorting=“Y”

obj_prefix=“$block.block_id000”

item_number=$block.properties.item_number

show_add_to_cart=$_show_add_to_cart

show_list_discount=true

show_discount_label=true

show_product_options=$_show_product_options

no_pagination=true} ```



Maybe im modifying it on wrong place…:confused:

Did you clear the cache after changing the template?

yes.



I edited the: customer\blocks\products.tpl



```php {include file=“blocks/product_list_templates/products.tpl”

products=$items no_sorting=“Y”

obj_prefix=“$block.block_id000”

item_number=$block.properties.item_number

show_add_to_cart=$_show_add_to_cart

show_list_discount=true

show_discount_label=true

show_product_options=$_show_product_options

no_pagination=true} ```



than deleted contents from folder \var\cache and \var\compiled\customer…but no change…still discount label not showing in block…



maybe I missed somthing?



did the discount label display to anyone else?

There are several other criteria that must be met to display the label. You will have to try and read the template to figure out what must be true and false to get the label to show.