You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First I have to say this plugin is great! I'm not too familiar with it yet, but it works just as expected, easy to extend, theme – saves time for sure!
But I have one issue I'm not sure how I will overcome while keeping with best practices. I figure I have to extend the plugin with my own plugin and model in some way, but need some input on how to best go about it.
My client wants an alternate price above a specific quantity on a product with variants. Say you have a price of $1.02 for all units below 500 pcs, and $0.89 for a quantity above. I can't see how I can do this without adding fields to the price model, but not sure where to add the logic and how to solve this.
I was thinking to extend "alternate_price" and "quantity" to the Price model and tie that into the variant in the backend, and then somehow add logic from there.
If anyone has any input on this it will be greatly appreciated! :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First I have to say this plugin is great! I'm not too familiar with it yet, but it works just as expected, easy to extend, theme – saves time for sure!
But I have one issue I'm not sure how I will overcome while keeping with best practices. I figure I have to extend the plugin with my own plugin and model in some way, but need some input on how to best go about it.
My client wants an alternate price above a specific quantity on a product with variants. Say you have a price of $1.02 for all units below 500 pcs, and $0.89 for a quantity above. I can't see how I can do this without adding fields to the price model, but not sure where to add the logic and how to solve this.
I was thinking to extend "alternate_price" and "quantity" to the Price model and tie that into the variant in the backend, and then somehow add logic from there.
If anyone has any input on this it will be greatly appreciated! :)
Beta Was this translation helpful? Give feedback.
All reactions