Skip to main content
4 votes
Accepted

Apply configurable product images to ours associated simple products Magento 1.9.x

I've created a script for the same. You can achieve this by executing the script on your website. For Magento 2 <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ...
Sumit's user avatar
  • 4,930
3 votes
Accepted

Magento 2 : How to associate simple products to the configurable products programmatically

I found the solution: Load product configurable by ID: $associatedProductIds = [2060,2061,2062,2063];//Simple Product ids array $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
St3phan's user avatar
  • 2,907
3 votes
Accepted

Count Number of Associated Products Assigned to a Configurable Product

While the approach offered by jigs parmar does work, it is a HUGE performance hit if used in a loop! A much better approach is: $childIds = $_product->getTypeInstance(true)->getChildrenIds($...
Michael Yaeger's user avatar
2 votes
Accepted

Get product Category from Parent Product using SQL query

You can use below query to get parent product category id if there is no category assigned to associated products. $_resultCollection->getSelect()->joinLeft('catalog_category_product', 'e....
Jaimin Sutariya's user avatar
2 votes

Import Configurable Product in Magento with all the details in only 1 row per product in CSV file

You need one row per simple and one for each configurable
Nils Preuß's user avatar
1 vote
Accepted

Magento 2 - How to get minimal price of associated simple price of Grouped Product in phtml

You just need to add this code in your phtml file. Variable lowest price has the minimal price. $lowestprice = 0; $count = 0; if ($_product->getTypeId() == 'grouped') { $usedProds = $_product-...
Muhammad Hasham's user avatar
1 vote

How to get configurable product options on associated product page?

You'll need to build product URLs for each product variant using the configurable product's URL Key since the associated products are not visible individually. Append the following parameters to the ...
MagentoAaron's user avatar
1 vote

Magento2: Configurable product showing out of stock child products

I've fixed this issue by overriding the below file in our custom module: \Magento\ConfigurableProduct\Helper\Data.php Below are the complete steps: 1) Add below statement in your module's di.xml &...
Deeps's user avatar
  • 784
1 vote
Accepted

Geting list of associated products of group product

You assign all product to one variable $associatedProducts, you should use array instead of it. Try to get them in such way $associatedProducts = array(); $products = Mage::getModel('catalog/product')...
olkuznw's user avatar
  • 146
1 vote

Count Number of Associated Products Assigned to a Configurable Product

$product_confi = Mage::getModel('catalog/product')->load('1100'); //configure product id $childProducts = Mage::getModel('catalog/product_type_configurable')->getUsedProducts(null,$product_confi)...
Jigs Parmar's user avatar
  • 2,438

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