New field per coupon: is cachable with other coupon
At the moment I´ve changed the code so that only one coupon can be cached.
Idea: Add a new field to coupons so that the editor can decide (with a checkbox) that this coupon is cacheable together with another coupon.
But also think about: What is if only one coupon has the new box checked? Which coupon can be cached together with this one?
Will think about it...
What do you think? Any ideas?
P.S.: The idea originally comes from Sascha Egerer : thanks!
#1 Updated by Ralf Merz over 9 years ago
After having some talks on Commerce Developer Meeting we want to do the following:
The coupons will get a ceckbox: if activated, this coupon can only be cached "alone". No other coupon can be added then.
So we can check the value of that checkbox and decide what to do in the basket.
Maybe (possible scenarios):
If a coupon A is in the basket already (no matter if checkbox is activted or not), and the user want´s to cash a coupon B (with checkbox activated), the first coupon will be deleted from basket and the new one will be added to the basket.
Or if there already is a coupon in the basket, we´d have to output an "error" message, that this coupon combination is not possible.
For that there is no possibility to deleted a cashed coupon from basket, the plugin should work in a logical flow.