Skip to content

magento2.4

Auto Added by WPeMatico

How to programmatically assign simple product to configurable on Magento 2.4

How do you programmatically assign simple product to configurable? What I tried: $configurableProduct = $this->objectManager->create(‘MagentoConfigurableProductModelProductTypeConfigurable’); $configurableProduct->setUsedProductAttributes($product, array($product_jsa_type_attribute_id)); $product->setNewVariationsAttributeSetId(4); $product->setAssociatedProductIds(array( $productObj->getIdBySku($ticketProduct[‘product_id’]), $productObj->getIdBySku($couponProduct[‘product_id’]), ));

Magento 2.4 Error flushing Varnish server. Host: “127.0.0.1”. PURGE response code: 501 message: Not Implemented

We are using Magento 2.4.5-p1 and PHP 8.1 versions. When we are running upgrade commands getting an issue of – Error flushing Varnish server. Host: “127.0.0.1”. PURGE response code: 501 message: Not Implemented Does Anyone know how to resolve this… Read More »Magento 2.4 Error flushing Varnish server. Host: “127.0.0.1”. PURGE response code: 501 message: Not Implemented