In the promotion bonus options dropdown box, there are four options:
to percentage of the original price
by percentage of the original price
to fixed amount
by fixed amount
I want to remove two options “to percentage of the original price” and “to fixed amount”, as they are never used and it would be disastrous to discount To 10% while the intention was to discount By 10%.
I couldn’t find the Smarty template file for this form, when searching for the language variable that represents “Product discount”.
What’s the best way to remove these two promotion bonus options?
[quote name='yong2014' timestamp='1398863545' post='182700']
In the promotion bonus options dropdown box, there are four options:
to percentage of the original price
by percentage of the original price
to fixed amount
by fixed amount
I want to remove two options “to percentage of the original price” and “to fixed amount”, as they are never used and it would be disastrous to discount To 10% while the intention was to discount By 10%.
I couldn't find the Smarty template file for this form, when searching for the language variable that represents “Product discount”.
What's the best way to remove these two promotion bonus options?
[/quote]
Please open the “app/schemas/promotions.php” file. For several types of bonuses you can find there the following line:
'discount_bonuses' => array('to_percentage', 'by_percentage', 'to_fixed', 'by_fixed'),
Just remove the unnecessary options, save the file and clear the cache.
Thanks
Thanks a lot eComLabs for pointing out how to achieve this.
I was also wondering how come I couldn't find the Smarty template for add catalog promotion form (the screenshot attached in my first post). I searched for the language variable “[color=#333333]promotion_bonus_product_discount” (which represents “Product discount”) in all .tpl files but couldn't find it.[/color]
[quote name='yong2014' timestamp='1399188390' post='182872']
Thanks a lot eComLabs for pointing out how to achieve this.
I was also wondering how come I couldn't find the Smarty template for add catalog promotion form (the screenshot attached in my first post). I searched for the language variable “[color=#333333]promotion_bonus_product_discount” (which represents “Product discount”) in all .tpl files but couldn't find it.[/color]
[/quote]
You are welcome!
The language variables are defined in the php schema. Therefore you were not able to find it in the template. Here is the path to the template:
design/backend/templates/views/promotions/components/bonus.tpl
Thanks