I’m new on spree and I read that a product has a master variant that contains the price attribute. I have to add a “discount price” to the master variant.
I can simply add the column to the variant model and modify manually the view but I think that it is not the best approach because I suppose this column should modify the behavior of checkout process (instead of the master price I need to show the discount price if it is present).
Which is the best strategy to work out the problem?
I think you have a couple of options here:
At any rate, I would probably not recommend storing it in the variant data model and I would suggest looking into the functionality supported by the promo core gem.