2022 Developer Survey is open! Take survey.
7 votes

How to get associated(child) product id, name and other details using configurable product id in Magento 2

Firstly, never use objectManager like you did in your phtml or in any block class. You should always use automatic constructor's dependency injection system. I suggest you to utilise Magento 2's ...
user avatar
  • 604
7 votes
Accepted

How to get associated(child) product id, name and other details using configurable product id in Magento 2

Will get the answer by this code itself afeter di:compile $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->get('Magento\Framework\Registry')->...
user avatar
  • 1,742
6 votes
Accepted

Get value of super attribute of configurable products in magento 1.9.3.1

Try below code $_product = $this->getProduct();// Or you can load your product here $_attributes = $_product->getTypeInstance(true)->getConfigurableAttributesAsArray($_product); print_r($...
user avatar
  • 5,813
4 votes

Configurable products - Get product options in list.phtml

You can try using something like this in your category page: <?php if ($_product->isConfigurable()): ?> <?php $attributes = $_product->getTypeInstance(true)->...
user avatar
  • 1,241
4 votes
Accepted

Redirecting Associated Products to Grouped Product

The idea is this. When viewing a product page check to see if the product belongs to a grouped product. If so, redirect to the main product page. There is a catch. A simple product can be part of more ...
user avatar
  • 195k
4 votes
Accepted

How to get selected simple product Id on checkout_card_add_after observer in magento2?

Add below code in your observer file $item = $observer->getQuoteItem(); $product = $item->getProduct(); $typeId = $product->getTypeId(); if ($typeId == \Magento\ConfigurableProduct\Model\...
user avatar
  • 9,512
3 votes
Accepted

Associated products with red background

This is normal behavior. You should notice that the checkboxes on the red lines are disabled. This means that you cannot associate those products to the main configurable product. Here is why. Let's ...
user avatar
  • 195k
3 votes
Accepted

Get child products of configurable product via Service Contract / API

Yes you can do it by using the getChildren method from Magento/ConfigurableProduct/Api/LinkManagementInterface class. You will have to use the sku as a parameter
user avatar
3 votes

Magento2 which table to store data like configurable product

Main table for products in magento: catalog_product_entity Above table is an act as main table, for that child tables are staring with “catalog_product_entity_” prefix. - ...
user avatar
  • 5,094
3 votes
Accepted

How to add group product into the cart individually?

Try below code. It should work. <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ // @codingStandardsIgnoreFile /** * Grouped product data ...
user avatar
  • 2,313
3 votes

How can I get custom attribute value of an associated product in a grouped product?

getAssociatedProducts does not get you full product objects but product links as a custom collection with standard attributes Two options: You add the attributes you want to the getAssociatedProducts ...
user avatar
  • 1,549
2 votes
Accepted

how to display position number as it is filled in associated products in a GROUP PRODUCT

Thanks david, Edit the Group.phtml under /app/design/frontend/YOURTHEME/default/template/catalog/product/view/type i have added Ref No (Position), Part Number (SKU), Req(Default Qnty) and made the ...
user avatar
2 votes

Group Products Broken and will not open Associated Products

This was a database issue. This happens when you are missing foreign keys in your database. I had improperly migrated my database to exclude or ignor foreign keys and this was the result. The ...
user avatar
  • 71
2 votes

Get Associated product By ID

$associated_products = $_product->load($_product->getId())->getTypeInstance()->getUsedProducts(); or if you already have the $_product entity, no need to load it again. Try this: $...
user avatar
  • 195k
2 votes

Calling Associated product images in configurable product

Please use the custom code to get the images from configurable product having associated product $_products = Mage::getModel('catalog/product')->getCollection() ->addAttributeToFilter('...
user avatar
  • 4,770
2 votes

Magento CE 1.9.1 Configurable Products do not get their simple products 'associated'

Adding the author's comment as an answer to not leave this "unanswered": This happens with one attribute set that contains an added attribute "group" with 3 attributes. All the 3 attributes are set ...
2 votes
Accepted

Making attributes assigned to configurable products optional

Sounds like you have a problem that can be solved in UX by showing the products in a grid rather than a confusing set of drop-down. You can also put event observers in the frontend javascript to make ...
user avatar
  • 2,015
2 votes

Load Simple Products Collection (both, in stock and out of stock)

The problem lies in the call to addStoreFilter() in getUsedProductCollection(): public function getUsedProductCollection($product = null) { $collection = Mage::getResourceModel('catalog/...
user avatar
2 votes

Associate a downloadable product to configurable product

There could be two reasons that a downloadable product does not show up on the grid, both can be diagnosed by looking at the function Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config_Grid::...
user avatar
2 votes

Magento 2 : How to get selected simple product Id on checkout_card_add_after observer?

I will be speaking for Magento 2.2.6 There is an event dispatch like this $this->_eventManager->dispatch( 'checkout_cart_product_add_after', ['quote_item' => $result, 'product' =>...
user avatar
  • 1,089
2 votes

Magento2 which table to store data like configurable product

Check this table which is using for Configurable product catalog_product_super_attribute catalog_product_super_attribute_label catalog_product_super_link: it contains associated simple product of ...
user avatar
2 votes

Magento2 which table to store data like configurable product

1) in Magento 2 "catalog_product_relation", "catalog_product_super_link", "catalog_product_super_attribute_label" and catalog_product_super_attribute_pricing will store the information about the ...
user avatar
1 vote
Accepted

Changing price is not reflecting for configurable products

That's how Magento works with configurable products. You set the price to the configurable product itself and the price you set in the first table (with option 3,4,5,etc.) is added to that price. ...
user avatar
1 vote

Load Simple Products Collection (both, in stock and out of stock)

If you need the collection of products associated to a configurable, the following should work: $configurableProduct = Mage::getModel('catalog/product')->load(<your_product_id>); $...
user avatar
1 vote

Load Simple Products Collection (both, in stock and out of stock)

You can use below code as alternative solution for this question: $simpleCollection=$configurable->getTypeInstance(true) ->getUsedProducts(null,$configurable); foreach($...
user avatar
  • 75.5k
1 vote

Load Simple Products Collection (both, in stock and out of stock)

What happens if you try this way: $simpleCollection = $configurable->getUsedProductCollection() ->addAttributeToSelect('*') //->...
user avatar
1 vote

Group (Wholesale) Pricing Not Displaying on Product Page

So I found out that I have to actually add the wholesale pricing to all the simple products as well. Once I did, it worked perfectly.
user avatar
1 vote

Assign associated products and attributes to configurable products via soap v2 api

You'll need a 3rd party module to allow for such functionality unfortunately. https://github.com/jreinke/magento-improve-api http://www.bubblecode.net/en/2012/04/20/magento-api-associate-simple-...
user avatar
  • 8,279
1 vote

Fatal eror in cart page and blank view page

/home/outthinking/public_html/upload/em0113-full-package/app/code/core/Mage/Cata‌​log/Model/Product.php Please check which line you have fatal error, this fatal error means that you call a method of ...
user avatar

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