How should Ecotax work #35245
Replies: 3 comments 4 replies
-
In fact, when this option is deactivated, it should no longer be taken into account in the calculation or display, even if the product data is present. |
Beta Was this translation helpful? Give feedback.
-
It make sens :-) |
Beta Was this translation helpful? Give feedback.
-
It's not that simple actually The problem is that when you start enabling the ecotax your product price is split into two parts:
The product price is the sum of these two parts and that's the beginning of troubles. Let's take your example, ecotax is enabled you have product with regular price 8$ and ecotax is 2$ so your product is sold for 10$ (let's put the taxes out for now). You want to temporarily disable the ecotax feature, but as you said in a slack discussion when we do this we can't simply reset all the ecotax values to 0 (and if we did we'd actually need to add it to the regular price, because the total price shouldn't be impacted by this change in configuration). So regular price is still 8, if we do as you suggest and simply ignore the ecotax value already set then the product price has been changed from 10 to 8. That's probably not what the merchant wishes, he simply doesn't want to display the ecotax part. I think that's why in the method computing the product price the ecotax part is ALWAYS added regardless of the ecotax configuration. And it also makes sense because keeping prices consistent should be the priority. TLDR: the problem with ecotax is an old one, it was not designed efficiently and now it causes all these struggles and bugs, the ecotax value should be independent from the product price and only used as a displayed information it would solve many drawbacks in the price computing and also improve the general UX in back office. |
Beta Was this translation helpful? Give feedback.
-
So, after some issues with a shop where some products had a mysterius additional cost, we discovered that this was from the field ecotax in ps_product being added.
The setting for "Use ecotax" was set to NO, but the value was still added.
Normaly this would probobly not be a problem, since the field is set to 0 when saving "No" on the setting, but this was an upgraded shop so that process had not happened.
Also, when setting this value to No, to just delete all data is not a good solution, it may be possible that a merchant want to suspend this feature temporarily, and to just lose all data is not that great.
I think that
Beta Was this translation helpful? Give feedback.
All reactions