Replies: 5 comments 9 replies
-
And of course designers will probably remove some of the columns depending on the customer needs. The main point is that it is close to impossible to get the discounted unit price currently without overriding SpecificPriceFormatter :) |
Beta Was this translation helpful? Give feedback.
-
I like it. I had to implement it in some of the client's stores but never considered putting it to the core. @Hlavtox wdyt? |
Beta Was this translation helpful? Give feedback.
-
I like the idea about the hook a bit more |
Beta Was this translation helpful? Give feedback.
-
So I've read through this: https://build.prestashop-project.org/news/2023/github-discussions-are-now-enabled-in-the-prestashop-project/ a few times and I still don't know what is the next step. Should this discussion be converted to a issue? Or do I make the pull request and reference this discussion? (and I would hope that the "more data" and "hook" can be split to two different pr:s) |
Beta Was this translation helpful? Give feedback.
-
hmm, mentioning a discussion in the pr does not autolink like in issues? thats not nice.. |
Beta Was this translation helpful? Give feedback.
-
The problem
Storefront nicely shows "You save" and "Unit discount" columns for quantity discounts. But it would be great to also show the effective unit price for the product in the same place.
Using Hummingbird theme:
This could also show the unit price like this:
The solution
SpecificPriceFormatterCore just needs to give out the unit price from its calculations.
Something like this:
Alternatives
Or SpecificPrice could provide a hook so that module developers can easily extend it.
Additional context
No response
Do you plan to work on this subject?
Beta Was this translation helpful? Give feedback.
All reactions