Skip to content

custom-attributes

Auto Added by WPeMatico

Magento 2: Unique Constraint Violation Error on Saving Custom Product Attribute After Database Migration

I’ve recently migrated my Magento 2 project’s database from the production environment to a local setup to perform a version upgrade. Since the migration, whenever I attempt to save any custom product attribute, I encounter the following error: “Unique constraint… Read More »Magento 2: Unique Constraint Violation Error on Saving Custom Product Attribute After Database Migration

Magento 2 js library(Magento_Customer/js/customer-data) how to get custom product attributes in js

I’ve a little problem with an override of google tag manager in Magento 2 enterprise. google-analytics-universals.js have some function that trigger the events: addToCart, removeFromCart. To get the products details in addtocart function google tag manager(google-analytics-universals.js) use: ‘Magento_Customer/js/customer-data’ with the… Read More »Magento 2 js library(Magento_Customer/js/customer-data) how to get custom product attributes in js