Questions tagged [related-products]

Denotes questions about Magentos related products feature.

72 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
1k 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....
4
votes
0answers
415 views

Getting Configurable Options to Show for Related Products

A the title suggests, I am trying to get configurable product options to show for products in the upsell and related products lists on the product view page. So far, Google has come up empty handed ...
3
votes
0answers
34 views

Error: The same url in all products Magento 1.9

I've tried to show the related products under the images of products. Until here all is ok, but the URL of the products is showing always the same of the first related product How can I solve this? ...
2
votes
0answers
12 views

Show/Link variation

Just want to start by saying thank you for taking the time to read this. I'm wondering if there is any possible way to link or show variation/simple products tied to a configurable product? Like when ...
2
votes
0answers
108 views

Magento 2: how to get Custom Options in custom product list on detail page?

This is my Custom Collection, I want custom options in this collection below the price. I have custom product collection like related, upsell products, the collection is properly displaying on the ...
2
votes
0answers
55 views

How to show configurable product as related product with their options in Magento

The problem is that when I add a configurable product as a related product, it shows the product but there is no checkbox. I have read that in Magento2 when the related product is a configurable one ...
2
votes
0answers
524 views

Magento related products get category

I want to edit my /catalog/product/list/related.phtml file. I want to define all related products based on their main category. So for example that all mices are displayed in their category "Mices" ...
2
votes
2answers
352 views

Related Product

i am New In Magento. I want to add related product tab in my product page after review tab. i am working in RWD 1 column default theme can any one help. I have already add related product in Product ...
2
votes
1answer
837 views

Magento Rule Based Related Products

We are attempting to set up Rule Based Relations, a feature of Magento Enterprise. Specific Magento version is EE 1.13.1.0 So basically you set which products are the related products, and which ...
1
vote
0answers
28 views

Magento2.3.5 - Fastest way to check if product got related products

At the moment we use the following code on the product page, to check If the product got related products or not. But this is quite a slow method and slows the product page down with more than 0.5 sec....
1
vote
0answers
43 views

Refresh related products of a configurable product - Magento 2.3.4

I am searching for a solution to change related products if the customer choose another attribute / simple product of this configurable product. For example I have a configurable product with the ...
1
vote
0answers
22 views

Magento2 Related Products Block Based On Customer Interest

I have a magento2 website and what i am thinking is i want to develop a related products block which needs to be displayed based on user interest. Lets assume a user open my website firstly and then ...
1
vote
1answer
396 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 ...
1
vote
0answers
69 views

Magento 2: Backend Related, Upp-Sell and Cross-Sell Product Tab Filter Issue

When I filter Product By Name in related product tab product filter Working Completed, but without product add called save function directly and page redirect to the Catalogue page.Any idea,please ...
1
vote
0answers
28 views

Show Product Out of Stock if Related Item Out of Stock

Is there a way in Magento 2.2.1 to mark a product out of stock if the related item is out of stock?
1
vote
0answers
20 views

Product page (Related.php) error in Magento 2.1.16

I override the page Related.php and add my extra custom function in this class it works perfectly on 2.2.X but in 2.1.16 it shows me this error Warning: Invalid argument supplied for foreach() in /...
1
vote
0answers
98 views

Magento2.5 Related Products image url path incorrect after moving website

I recently moved a Magento 2.5 based website to a new server and now on the product detail page the related products the product images are not loading. Upon inspecting the image tag I see the url is ...
1
vote
1answer
920 views

How to get related product collection in block

I use this way to get related product collection /** * Prepare and return product collection * * @return \Magento\Catalog\Model\ResourceModel\Product\Collection */ public function ...
1
vote
0answers
134 views

How to Hide Empty related Product in Magento

I hope someone can help me. I have a website in Magento 2, and I want to hide the related products when they do not have articles. I have added my list of products and some have related products and ...
1
vote
1answer
146 views

Magento 2 not passing minimum QTY when adding related products to cart

I'm currently experiencing an issue on Magento 2.2.5. We have a number of simple products that have a minimum order qty set as 100. If I view on of these simple products, we'll call this Product A. ...
1
vote
0answers
17 views

Can we show different add-ons and upsell product in per website by passing the same SKU?

Currently if we add upsell/add-on products to default it wont let you to change it on each store view. All the upsell and add-ons will be the exact same as default. Is it possible to change upsell/...
1
vote
0answers
358 views

Magento 2 Ajax add to cart related products

So I've found the location to turn on ajax add to cart in the product page. I've also found where the; $showCart: true Lives to enable the related products to have an add to cart button on them. ...
1
vote
0answers
49 views

Magento : Related Product issue

I have added related product to one simple product it's all are display in product detail page but it's not display with checkbox for select so that i am not able to add that product to cart. ...
1
vote
0answers
33 views

Related product does not show when selecting product from configurable product

I have created a configurable product with subproducts (simple products)- so far so good - I select and price and picture change and I can place the correct product in the basket - but I would like ...
1
vote
0answers
1k views

Magento 2 : Copy “Related Product” functionality in custom module

I just want to select some products on the edit page and show them on the product page. It should be the same function, as in Related Products, Up-sells, and Cross-Sells. Can I simply copied some ...
1
vote
1answer
1k views

How to filter related product collection by is_salable magento 2?

Related products are showing with out of stock products, I want to hide out of stock products from related products only. $this->_itemCollection = $product->getRelatedProductCollection() -&...
1
vote
0answers
65 views

Empty Related Products collection

For some stange reason, the related product collection is always empty for my products: $products = $this->getData('related_products'); even if I have set some related products in magento. Any ...
1
vote
0answers
166 views

How do I add a configurable as a related product and show it's options in Magento 2.1

I am using Magento 2.1.9 and I would like the customer to see related products on a product page that are configurable without navigating away from original product page. Meaning you can configure and ...
1
vote
1answer
7k views

Magento 2 : Display Related Products Block in Product View

I'm using magento 2.1.3 and I want to display related products under product_view. Product view is using 1 column template. I've added successfully related products to some products. I've reindexed ...
1
vote
0answers
301 views

related products getProductUrl() giving url without rewrite

I'm loading my related products like this: <?php $_relatedProducts = $_product->getRelatedProducts(); ?> <?php foreach ($_relatedProducts as $_item): $_item = Mage::getModel('...
1
vote
0answers
30 views

Load related products inside description file

I want to load the related products inside the /catalog/product/view/description.phtml file. Therefore I added the following code, but the related products are not loaded. What am I missing? CODE: ...
1
vote
1answer
864 views

Related product to have quantity added to cart

I need related products to have a quantity input on the view page and for the add to cart button to carry this quantity to the cart with the product. Can anyone advise, thanks.
1
vote
1answer
395 views

How can we get automatic related, up-sell & cross-sell products in magento 1.9 without any extension?

I want to display related, up-sell & cross-sell products generated automatically without using any extension?
1
vote
0answers
91 views

Google Search Console finds deleted products

We have a magento 1.8.0 webshop with over a 1000 products. We always check out Google search console, and try to remove all the 404 crawl errors. The url rewrites have been flushed and corrected, but ...
1
vote
0answers
29 views

Related Product inverse relation

In Product Page is there a way to get all the products who have the current product as related ? Example: Product A Page I want to know all the products that have the Product A as related.
1
vote
0answers
189 views

Change related products from observer, when there are no related products

I'm writing an extension that dynamically change related products, eg decide which related products to show during page load. Basically I listen to the catalog_product_collection_load_after event, ...
1
vote
0answers
537 views

Configurable items in related and upsell areas

I have been following a tutorial - http://catgento.com/2012/02/09/adding-configurable-product-options-to-category-list-in-magento/ - to add configurable products dropdowns to the configurable products ...
0
votes
0answers
33 views

Magento 2 Product In Websites

I'm a Magento 2 beginner that started using Magento for a couple of weeks. I got assigned to check an issue in Product in Websites. The issue is. If I unchecked the main websites and keep the A ...
0
votes
0answers
10 views

Related product rules are not working for newly created product attribute with comma separated values in conditions

Preconditions (*) The issue is reproducible in EE 2.3.3. There are no dependencies modules. Verified in 2.3.3 with sample data. Verified in the UAT environment with an existing client environment. ...
0
votes
0answers
15 views

Order Related Products in magento 2

I want to have one functionality similar as related products. See https://prnt.sc/t5dxzl I will add Related products in backend and i want to add Add to cart functionality to it. Remember i want to ...
0
votes
0answers
23 views

Show related products with list style on product page in Magento 2?

I was able to show the related products on the product page inside the 'related product' tab. However, it is in grid style. I'm wondering if there is a way to show them with "list style" ( like the ...
0
votes
0answers
64 views

Magento 2: Issue with double configurable swatches on related product tab

I am having an issue with double configurable swatches on the related product tab. It is working properly with single swatches such as color swatches only but it creates an issue on products with ...
0
votes
0answers
106 views

How can I display related products in the minicart? - Magento2

In Magento Commerce Cloud (Magento 2), I am trying to display related products in the Minicart after a user adds an item to the cart. The specific issue is that my code works in the Docker local ...
0
votes
1answer
27 views

Magento 2 - Related products not showing

I try to show "Related Products, Up-Sells, and Cross-Sells ". All of them work, but "Related Products". I thought there must be something wrong with the products which I have assigned to Related ...
0
votes
0answers
12 views

Magneto 1 Want to show some products same as Related products in catalog product edit

I have created custom tab with products in Catalog >> Product >> Edit But want to apply same grid functionality like related products including remove products. Tabs.php (Vendor/ModuleName/Block/...
0
votes
1answer
29 views

Related products are not showing on frontend

I'running my M1 shop for some years now. But I never used related products before. I use a single column template and like to show related products at bottom of product page. So at a config. ...
0
votes
0answers
21 views

Get position of related product

I'm trying to get a product position but I'm getting null. The objectives is to order them by position instead of ids if ($mysku) { /** @var \Magento\Catalog\Model\Product $myproduct */ ...
0
votes
0answers
71 views

Related products are not visible in product page in magento 2.3.1

I am facing an issue that related products are not visible in the product view page. How can I show related products on the bottom section of the product view page? Please help to find the solution....
0
votes
0answers
32 views

Magento 2 Admin : How to increase number of products shown under related products in admin section?

I want to sort the product by grag and drop , but both product are in different page , So want to remove pagination or show 100 products instead of 20 , Any Suggestion would be appreciated !
0
votes
0answers
234 views

Magento 2.3 color swatches with related products & upsell products?

I have added color swatches with related products using this code: <?php if($_item->getTypeId() == \Magento\ConfigurableProduct\Model\Product\Type\Configurable::TYPE_CODE){ $...