Expresso storage modifier

I work in a shop for a florist. Bouquets are sometimes more than one size. I would like to have the various sizes available in the drop down menu (i.e. Regular = £ 30, Medium = 50, Large = £ 70). I would like to set this field as a custom field, not a modifier, since it applies to almost every bouquet (but not to everything), and this is a kind of pain that my client must add to the product entry form (it takes too much space for an error in wording / stylization). I can customize the entries using the custom Matrix field, but how do I encode the template so that the Store reads prices correctly when they are added to the cart?

Thanks!

+4
source share
1 answer

There is currently no way to override the price using matrix fields or similar. You must enter modifiers separately for each product (unless they are “text modifiers”, but they cannot adjust the price as necessary). We are exploring ways to support it (while maintaining security and not allowing users to simply post their own price on the form).

This could be done using PHP. Someone already managed to do this in the allowance for bulk discounts - it seems that a matrix is ​​used to store the values. I did not have the opportunity to see how this was done, but if you want to encode something to solve your problem, this will be a good starting point.

0
source

Source: https://habr.com/ru/post/1444840/


All Articles