-
Notifications
You must be signed in to change notification settings - Fork 5
add "price lists" support #2
base: master
Are you sure you want to change the base?
Conversation
|
||
# Drawbacks | ||
|
||
I don't see many drawbacks: we don't need to *add* much code, we just have to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential drawbacks are degraded performance when determining which list should be used to display pricing to the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I concur.
I'm in favor of improving Spree for something like this, and I had helped @simmsy & @forvalho put together the spree_price_books extension for Surfdome. It definitely required overriding some important pieces of Spree like Variant#price_in it is on the https://trello.com/b/PQsUfCL0/spree-roadmap to add price books/lists to Spree but whichever route we take your more simplified version or their more complex version I believe either one needs some more polish before it's ready. On the plus side though a good deal of work has already been done on this front. I think we just need to determine how complex we want it to be, and polish it up so performance isn't an issue. |
@alepore with formal english, the word "i" is always capitalized. Hope that helps with the English. |
@alepore an unresolved question is not for you to be better at english. Can we make the RFC a more formal proposition of change in Spree? You're opening for Motivation is:
This sentence takes into assumption that I already know what your issue is. I'm actually left guessing. What is a Price List? Can you update your RFC for a more formal audience and update the Drawbacks based on @JDutil's comment. If you do not concur, please also update in a respectable section as to why it won't be. |
thanks for feedback, i made some updates |
I'm 👍 on this. I'd love to hear other peoples thoughts. |
This will require some work on the frontend: Caching will have to work differently for all partials with prices. All the cache keys for those partials will have to include whatever variable is used to determine which price from the list should be shown or selected. We did this for differing prices for different VAT zones, and it required a How would the choosing of different prices from the book work? Based on the order's address, or on the user? or some I think it's a worthwhile addition nevertheless. Keep up the good work! |
@mamhoff :
thanks for reply! |
hope it's clear :)