Hi,
when creating Promotions,
what is the difference of
"Stop following rules"
and
"Stop other rules"?
It is not explained here:
https://docs.cs-cart.com/latest/user_guide/manage_products/promotions/setting_promotion.html
In previous versions "Stop other rules" was used to force just a single promotion per cart.
Thanks!
ravp
May 4, 2023, 8:48am
2
actually there is still no information about the two fields in the documentation. In older versions of cs-cart there was only the ‘stop’ option in the cscart_promotions table in the database (now there is ‘stop’ and ‘stop_other_rules’).
Sometimes only one of these fields appears in the promotion definition, sometimes both.
Looks like the “Stop following rules” option is added by 3rd party addon since I do not see such option on a clean installation
ravp
May 5, 2023, 8:09am
4
I considered AB add-ons (UniTheme2), but could not find code in the php files to add the ‘stop_other_rules’ column to the cscart_promotions table.
The mentioned column is default one
ravp
May 5, 2023, 8:34am
6
in the fn_promotion_apply( ) function, there is a condition in the foreach loop:
// Stop processing further rules, if needed
if (YesNo::toBool($promotion['stop']) || YesNo::toBool($promotion['stop_other_rules'])) {
break;
}
it looks like ‘stop ’ and ‘stop_other_rules ’ work identically. Just why are there separate fields in promotions/update.tpl :
You are right, I found this column in the 4.16.2 distributive. But we failed to find how this field is processed.