Hi, sorry, but I don't understand? Original price is only set when it is different to valid price (of course, as marketing tool, mostly only when the original price is higher than the valid price)
Not sure, if such feature should be checked or not - as you can find hundreds of places where to add the if condition - to protect against logical errors.
But as we are not checking e.g. if the price is to low, etc. not sure, if we should check if somebody add the same original price as valid price
I know, it can be nonsense but what happen, if there will be somebody who wants to display lower original price to valid price. As we cannot limit standard price (we cannot decide if some price for good will be not logical and will be too low, so we cannot decide if somebody wants to display the same or lower original price every it does not make any sense)
This is really something what I cannot decide:
- should I do new if condition and make the code more difficult (you can find a lot of similar places in code)
- and should I limit possible option.
Why I am writing it here. I happened often when creating extensions, that I have added protection against logical errors users can do but if you will search this forum (e.g. Phoca Guestbook), you can see that I have spent so much time to explain why I have limited some feature, etc.
As I understand fully what you mean and I fully understand the logic of this change, really hard to decide if this should be implemented or no.
Jan