mamhoff
07/26/2023, 12:28 PMsolidus_friendly_promotions
. Some of you know that I've tried refactoring Solidus promotion system a few times, and that I've found it to be pretty hard to do in a piecemeal fashion. This gem is an attempt to produce a version that I think actually works and is somewhat more understandable. We'll be implementing this in our store in the coming weeks and months, and I want to politely ask y'all to try it out: Give the source code a read, try running it with your test suites, see whether you can implement your most important rules and actions.
There are a few design decisions that deviate from Solidus core:
• There are no facilities for whole-order-adjustments as these are no good
• Currently, there's no support for anything but discounts. If you want to manipulate orders in other ways (adding/removing line items, etc), I encourage you to use the Omnes
event system instead.
Some features that this has:
• Much less complicated rules
• Ability to combine order-level and line item rules ("Discount the line item with the hoodie if the order has a sneaker, but don't discount the sneaker")
• Calculable shipping discounts (not just Free shipping)
• Preview shipping discounts ("UPS Ground (33% off UPS shipping) kennyadsl