Question

I am using Magento 2.3.2. When i am tring to add Customer Group Price for child product of configurable products in admin panel then i am getting below error when save the product:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '16092-1-0-30.0000-0' for key 'UNQ_6D3040166530765494A77D7288801D79', query was: INSERT INTO catalog_product_entity_tier_price (entity_id, all_groups, customer_group_id, qty, website_id, percentage_value) VALUES (?, ?, ?, ?, ?, ?)

but it's working for Simple Products as expected.

I am not able to understand why i am getting this error.

Once i have truncated that table but still getting Integrity constraint violation: 1062 Duplicate entry

Any help??

enter image description here

Was it helpful?

Solution

First of all, you can't add the tier price or even price for configurable products(except custom extension). If you want to add tier price for the configurable product then you need to add it in the child product.

Please check this and let me know if you need further information.

https://magecomp.com/blog/need-to-know-about-tier-price-for-configurable-products-magento-2/

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top