:wave: New (experimental) gem announcement: `solid...
# general
m
👋 New (experimental) gem announcement:
solidus_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) 3 USD 2 USD") There could probably be more documentation. The extension will only work with Solidus >= 4.1 https://github.com/friendlycart/solidus_friendly_promotions
👏🏻 1
🎉 11
❤️ 2
k
Thanks @mamhoff! Let us know how the experiment with your apps goes and we’ll try to do the same. If successful, looking forward to deprecate the current system in favor of this, if that’s in your plans as well!