Questions tagged [related-products]

Denotes questions about Magentos related products feature.

6
votes
3answers
2k views

Configurable Options in Related Products - Fatal error: Call to a member function getAttributeCode() on a > non-object

I'm trying to show configurable product options for each related product on a product page, so that the user can select options and add a related product to the basket without navigating to that ...
1
vote
4answers
3k views

Magento 2 : How to display swatches in related products?

I added related products list in product details page. I see there all related products list are display but now i need to display swatches in this list. How can it possible for related products list. ...
5
votes
1answer
5k views

Magento 2 How to add custom product relations?

I am needing to add another related products attribute to associate multiple other products. I have found a solution for Magento 1: http://inchoo.net/magento/how-to-add-custom-product-relations-in-...
4
votes
3answers
3k views

set related/upsell products programatically only works for 1 product

I am trying to update products programatically and I'm having issues with the related/upsell section. It updates only with the last product sku. So if I am trying to link 3 products with a parent ...
2
votes
1answer
1k views

Crosssell Products on Product Page with Magento 2

I have been trying to get crosssell products to show on the product pages. however adding the block does not work as it relies on the product being in the cart. I have tried to overcome this by ...
0
votes
1answer
4k views

Related Products template customize

How do you change the related products template output. Instead select all I would like to add a "add to cart" button to all related products and remove checkboxes.
2
votes
1answer
2k views

Magento 2 - Quantity Field on Related Products Listing

I'm trying to add a quantity field to the related products section on my product page. I'm overriding module-catalog/view/frontend/templates/product/list/items.phtml in my theme. So far, here is my '...
0
votes
0answers
131 views

function override issue in foreach loop while importing upsell and related products in magento2

If I add upsells products code above related product then only related products importing and If I add related products code above upsells product then only upsells products importing. This code ...