How taxes calculated for bundle products? #341
-
Hi,
It's below zero, while it should be 23% of 69 euro. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
@igoraugustynski We'll take a deeper look at this issue and get back to you if I get some updates. |
Beta Was this translation helpful? Give feedback.
-
I should clarify I've not tried this, I'm going on the discussion above where this is what appears to be being said. Due to issues with the way the models work* we're creating our own admin backend using PayloadCMS (which we use for other content), so we're also effectively creating our own bundles product type too, so it may not be an issue for me personally - but obviously if it is doing what was originally said, it would need fixing.
The issue is I need to add a custom field to the product model which uses a lookup to show the variants of the product currently being edited. Last year, when I first looked at this, there was no way to do it and the admin user would have had to select the product (that they were already editing...) before being able to see the variants for that product. Obviously this could lead to errors if the user selected the wrong product. This was improved when you added the ability to use "parent_id": "{id}" in the custom query, which is a way to look up the currently edited product. The problem is, I need to do it in a collection field, and when you use that query in a field inside a collection then {id} no longer references the product, but the collection itself - ie {id} is always the id of the current object. I asked support to ask the developers to add a way to use {parent.id} or {id.id} similar to get around this, but the lack of this feature right now has pushed us to build the custom admin UI. Hopefully something can be added in the future to improve this. Thanks. |
Beta Was this translation helpful? Give feedback.
-
@igoraugustynski This bug is fixed and deployed at our end. Can you check and confirm please? |
Beta Was this translation helpful? Give feedback.
Oops, I assumed you were suggesting the opposite. You're right, the taxes should be based on the price of the bundle and not individual items. If that's happening we'd consider it a bug @logeshswell