Conflict issue with Custom Options Templates

Created by Katie Bui, Modified on Tue, 09 Jul 2019 at 09:06 AM by Katie Bui

Question: 

Trying to save custom options template generates a Unique Constraint Violation - https://prnt.sc/n3zzxr 


[2019-07-04 10:40:41] main.CRITICAL: Exception message: Unique constraint violation found

Trace: #0 /home/r/i/rit0009vps/public_html/vendor/magento/framework/EntityManager/EntityManager.php(96): Magento\Framework\EntityManager\Operation\Update->execute(Object(Magento\Catalog\Model\Product\Interceptor), Array)

#1 /home/r/i/rit0009vps/public_html/vendor/magento/module-catalog/Model/ResourceModel/Product.php(655): 

[...]

http://prntscr.com/oatdoa


Answer:

edit file
 /home/mdv2diamondgolf/public_html/app/code/Bss/MultiStoreViewPricingTierPrice/Model/Product/Attribute/Tierprice.php
if ($this->helper->isAdmin() && $this->helper->checkRoute() == 'catalog_product') {
to
if (($this->helper->isAdmin() && $this->helper->checkRoute() == 'catalog_product') || $this->helper->checkRoute() == 'bsscustomoption_template') {





Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us how can we improve this article!

Select atleast one of the reasons

Feedback sent

We apprciate your effort and will try to fix the article