2

You can use below method to update product attribute value. $product = $this->productRepository->getById($productId); $product->setData($attributeCode, $attributeValue2); $this->productRepository->save($product); Also, if you want $objectManager method to create a script. You can do it by following below code snippet. <?php use Magento\...


1

Note that calling Magento\Framework\Model\AbstractModel::save() directly has been deprecated since Magento 2.1.10 (see https://github.com/magento/magento2/blob/2.1.10/lib/internal/Magento/Framework/Model/AbstractModel.php#L629). I have tested saving product using Magento\Catalog\Model\ProductRepository::save($product) and your issue did not happen. Try ...


1

You define what forms appear in as part of setup. Have you missed this part? https://github.com/DominicWatts/EmailCC/blob/master/Setup/InstallData.php <?php namespace Xigen\CC\Setup; use Magento\Customer\Model\Customer; use Magento\Customer\Setup\CustomerSetupFactory; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\...


1

You can try this: Create file customer_form.xml in Vendor/Module/view/adminhtml/ui_component <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="customer"> <fieldset name="test"...


1

If you're asking for a "quick" way to have the stores use the default/website values again, then you'd be looking for a way to actually just delete the data at that store scope; the absence of store scope data implies that it should fall back to the default/website values. Essentially you'd be wanting to remove data from tables like such (please, for the ...


1

You can use below MySQL query to get the required records from the database SELECT `e`.`sku` as SKU , `e`.`entity_id` as 'Entity ID', `attribute_table`.`attribute_id` as 'Attribute ID', `attribute_table`.`value` as 'Value' FROM `catalog_product_entity` AS `e` INNER JOIN `catalog_product_entity_varchar` AS `attribute_table` ON (`...


Only top voted, non community-wiki answers of a minimum length are eligible