Skip to content

custom Section data need to update on cart item delete in magento2

I have created custom section data called test and create sections.xml file with below code <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Customer:etc/sections.xsd”> <action name=”*”> <section name=”test”/> </action> But it’s not updated on cart item delete So I have added below line as… Read More »custom Section data need to update on cart item delete in magento2

How to create custom Text Swatch product attribute using Data Patch in Magento 2

This code only saves the value (description). But I want to save values in ADMIN and DESCRIPTION both, can anyone help me here: private function addVisualSwatchAttribute() { /** @var EavSetup $eavSetup */ $eavSetup = $this->eavSetupFactory->create(); $eavSetup->addAttribute( Product::ENTITY, ‘custom_visual_swatch’, [ ‘type’… Read More »How to create custom Text Swatch product attribute using Data Patch in Magento 2