I have created a custom promotion action in Spree. (Technically we are using Solidus )
In this promotion action, I have defined my own custom view ( in app/view/spree/admin/promotions/actions/_my_custom_action.html.erb )
I have a select menu and a few number fields that contain variables that need to be passed to a calculator and / or the promotion action class itself as part of the calculation.
How do I incorporate variables from this view into my discounts / promotions ?
I read this article: https://blog.planetargon.com/entries/creating-custom-actions-in-spree-commerce and it appears that there are some pre -made view components there that tie into calculators. However, when I try to implement that view , I get errors suggesting ( I think ) that my promotion action is not associated with any calculators, even though I've included Spree::CalculatedAdjustments in my promotion action.
I'm COMPLETELY fine with using pre-built form elements to capture my user defined variables in admin. I'm just stuck figuring out how all of this connects together and the documentation is scarce / non-existent..