Hello Couch friends
The aim is to be able to make promotional campaigns for certain products with Shopping Cart.
In other words - Item level discounts like Black Friday Discounts.
Of course we have an editable region pp_discount_scaleр, but he can not be allowed globally (for example through a check box on a page with global settings)
Here's my idea - In my template products.php I made these changes:
before:
after:
So could make promotional campaigns for a number of products periodically without requiring changes to individual cloned pages!
But this code is not working ... can anyone help?
I do not dare to seek Mr. KK, because he is very busy with Couch version 2
Thanks in advance!

The aim is to be able to make promotional campaigns for certain products with Shopping Cart.
In other words - Item level discounts like Black Friday Discounts.
Of course we have an editable region pp_discount_scaleр, but he can not be allowed globally (for example through a check box on a page with global settings)
Here's my idea - In my template products.php I made these changes:
before:
- Code: Select all
<cms:editable
name='pp_discount_scale'
label=':'
type='text'
group='group_price'
validator='regex=/\[\[?([^\]]*)\](\]?)\s*(%?)/'
order='23'
/>
after:
- Code: Select all
<cms:editable
name='pp_discount_scale_normal'
label=':'
type='text'
group='group_price'
validator='regex=/\[\[?([^\]]*)\](\]?)\s*(%?)/'
order='23'
/>
<cms:editable
name='pp_discount_scale_promo'
label=':'
type='text'
group='group_price'
validator='regex=/\[\[?([^\]]*)\](\]?)\s*(%?)/'
order='23'
/>
... ...
</cms:template>
<cms:set my_promotional_campaigns_for_certain_products="<cms:get_custom_field 'promotional_campaigns_for_certain_products' masterpage='global_settings.php' 'global' />" />
<cms:if my_promotional_campaigns_for_certain_products="yes" >
<cms:set pp_discount_scale="<cms:show pp_discount_scale_promo/>" scope='global' />
</cms:if>
<cms:if my_promotional_campaigns_for_certain_products="no" >
<cms:set pp_discount_scale="<cms:show pp_discount_scale_normal/>" scope='global' />
</cms:if>
So could make promotional campaigns for a number of products periodically without requiring changes to individual cloned pages!
But this code is not working ... can anyone help?
I do not dare to seek Mr. KK, because he is very busy with Couch version 2
Thanks in advance!