Questions tagged [related-products]

Denotes questions about Magentos related products feature.

Filter by
Sorted by
Tagged with
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
4k 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. ...
6
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
5k 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.
6
votes
0answers
845 views

Magento 2 Admin- Invalid data provided for linked products

Getting an error " Invalid data provided for linked products " when adding related products to a product from the admin panel and saving Indexer crons, already setup Magento CLI version is : 2.1....
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 '...
1
vote
1answer
83 views

How to override product model files in Magento 2?

I am using Magento 2.3 I have override below core file. vendor/magento/module-catalog/Model/ProductLink/CollectionProvider.php To override this file I have created a new custom module in app/code ...