Conflict issue with Custom Options Template Module

Created by Support Agent, Modified on Fri, 3 Apr at 5:12 AM by Support Agent

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') {


Here is our information that you might care:


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Browse for more at: https://bsscommerce.com/magento-2-extensions.html and discover our most powerful tools that might help you boost your store performance:





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 know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article