Adobe Commerce 3.0: enable saving multi-select attributes
About this article
This article describes how to modify the Adobe Commerce 3.0 merchant plugin to save multi-select attributes on Adobe.
Table of contents
Introduction
The standard Adobe Commerce 3.0 merchant plugin (the v1.4.0 Magento extension) is an open-source plugin that you can modify. In some configurations, the plugin prevents you from saving multi-select attributes. If you experience this restriction, you may also receive a getCustomAttribute() call on your products.
The Adobe Commerce 3.0 plugin has a built-in product guard that restricts products from being repeatedly updated. This product guard may prevent you from saving multi-select attributes on Adobe. As a workaround measure, you can modify the plugin's source code to enable saving multi-select attributes on Adobe.
Setup
After the Adobe Commerce plugin is installed:
-
Open the
channelengine/magento2repository. -
Locate and open the
Observer/ProductObserver.phpfile. -
In
ObserverInterface, locate the functionpublic function execute(Observer $observer). -
Comment out the return statement:
if ($this->productHelper->wasUpdatedRecently($product)) { return; } - Multi-select attributes can be saved now, and the plugin will not block the update anymore.
Comments
0 comments
Article is closed for comments.