New answers tagged

0

I think but i am not sure this problem is not assigned attributes in particular stock But you tried this solutions Your attribute include after migration but you are not set the attribute in your store likes.So goes the following path and set your attributes store wise Stores > Attribute Sets > Select your attribute set > And Add the your attributes.


0

You should enter your store then select the attribute set. Next, find all the attributes that create config product and drag them to the attribute set you are using.


0

At the end I could not get the attributes of the child items, but I solved the problem by creating the products again, and this time gave the attributes (height, width, length and weight) from the beginning to the parent products, because once you add configurable products this attributes gets disabled. So I added the attributes first and then add the ...


0

It sounds like you are trying to create a configurable parent using attributes that are not Dropdown. Ensure that the attribute you are using is Dropdown and the available attribute values exist.


0

In this case, you need to get the child item. You can use below code to get child item detail and add your logic: foreach( $orderItems as $item){ if ($item->getProductType()=="configurable") { foreach( $item->getChildrenItems() as $chitem){ // child product echo $chitem->getSku(); } } else { ...


2

By default magento 2 provide that option. During configuration product , on the third step u can choose "Apply unique prices by attribute to each SKU" and assign unique price for your super attribute Update: Added more SC for your clarification


-1

$_children = $_product->getTypeInstance()->getUsedProducts($_product); foreach ($_children as $child){ $childProducts[] = $child; } $_product has the product object that is loaded by the corresponding ID


0

<?php use Magento\Framework\App\Bootstrap; include('app/bootstrap.php'); $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap->getObjectManager(); $state = $objectManager->get('Magento\Framework\App\State'); $state->setAreaCode(\Magento\Framework\App\Area::AREA_ADMINHTML); // or \Magento\Framework\App\Area::AREA_FRONTEND, ...


1

As of Magento 2.2 the admin System Configuration Panel "Advanced" has been removed. The following gives reference on how to disable a module's output. https://devdocs.magento.com/guides/v2.3/config-guide/config/disable-module-output.html


0

As @micwallace mentioned in a comment, this is no longer working properly in Magento 2.3.0 and later specially when MSI inventory module is enabled. Thus, we need to modify the getStockItem() $stockitem = $stockRegistry->getStockItem($product->getId(), $product->getStore()->getWebsiteId()); I've change this ↓ $stockRegistry = $objectManager-&...


0

I was having same issue while trying to duplicate products in 2.3.3 . The image that has issue was in DB (media gallery table) but physical file was not available and copying of images from old product to new product was not working because of this case. Solution mentioned in this link worked for me: How can I remove not existing images in magento 2 i ...


0

Here you can change Simple Products visibility to Catalog, Search and Enable product if not. After that disable Configurable Product From Backend. Still, If you face the same issue then run indexing and check Simple Products in your storefront. Indexing Command: php bin\magento indexer:reindex


Top 50 recent answers are included