Questions tagged [related-products]

Denotes questions about Magentos related products feature.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

How to merge two product collections in Magento2

I need help because I need to combine data from two subjects into one. I have configurable products. I want to download related and upsell products from "parent" and "child". In ...
0
votes
1answer
16 views

Showing "frequently bought together" products?

Does Magento keep any data on products that were purchased along with a specific product? I know that there is a "Product View" report, but I'm wondering if there is similar data available ...
0
votes
1answer
39 views

How to render related products block using a php script?

I've created the below code, but it looks like I'm missing something. Can you help please? <?php require __DIR__ . '/../../app/bootstrap.php'; $bootstrap = \Magento\Framework\App\Bootstrap::create(...
0
votes
2answers
27 views

How to Remove related products for the particular product with sku or id?

I need to remove All the Related products for the particular product with Id. I referred and got the SQL query to do that. Can this achieve by Model & Resource Model? Any help is appreciated. ...
0
votes
1answer
101 views

Second add to cart button on product page does not add related products - Magento 2.4.2

We have a second add to cart button on our product page, using the following code, see below. But when a related product is checked and this second add to cart button is clicked, the related product ...
0
votes
0answers
16 views

Magento applying incorrect inline css style size to upsell block

Using Luma as parent I have set image size in my theme's view.xml file for "related_products_list" "small_image" to 80/80. On the front end this displays correctly, and I notice ...
1
vote
1answer
39 views

Magento 2: Hide price from the upsell and related products block

I want to hide price from the related products and the upsell products block
0
votes
2answers
26 views

Magento 2 : Assign related products to sku

I am using below script to assign related sku to main sku. Script works well but the only issue is it removes old sku & assign new set of sku. I want to know if their is any way we can just assign ...
0
votes
1answer
42 views

Magento 2 : How to assign related product to main product programatically

Is their any way can we assign multiple related products to a product ? for example i have to assign from a csv row Main SKU, SKU #1, SKU #2, SKU #3, SKU #4 p226944, p210881, p213312, p218070, ...
0
votes
2answers
28 views

How to change the amount of products shown in related products programatically?

I want to display more than 4 products in the related products block. I've tried some solutions like overriding the core Related.php class and using methods: $this->_itemCollection->setPageLimit(...
0
votes
0answers
16 views

Filter Related product account current product category in Admin grid

I want to filter related product collections by the current product category. I mean I want to show only current product category products in the related product grid in the admin side. Is there any ...
0
votes
1answer
96 views

Magento 2.4.2 : Owl Carousel in Related Products not working

I am facing a strange issue with setup owl carousel slider to related products on PDP. I've added below code to initialise owl carousel at the end of items.phtml file in my custom theme. app/design/...
0
votes
1answer
38 views

Add description to Related Products

I try to add product Short Description in the Related Products section in Magento 2.4 version. I overwrite this file:/app/design/frontend/Theme/MyTheme/Magento_Catalog/templates/product/list/items....
0
votes
1answer
31 views

How to set the conditions for displaying of the related-products

Overriding related-product collection. My aim is to set limit for related product display. Related-products are not displayed if there are less than 10 products, the maximum number of products that ...
1
vote
1answer
78 views

Magento2 related products widget JS not triggering?

Actually using Ajax concept fetching related products & displaying in the form of HTML but i have been facing a problem i.e there is a JS attribute for an element data-mage-init='{"...
0
votes
0answers
36 views

CSV Import | Related - Crossell partial imported

While importing 8000+ new items, we've stumbled on an issue with the related_skus and crosssell_skus fields that causes only 800 new database entries to be created in the catalog_product_link table. ...
0
votes
0answers
45 views

Magento 2 fetch related products HTML based on simple product id

I would like to fetch related products while select configurable product drop downs hence i am using plugin concept. I am unable to fetch the related products for the simple product. it is throwing ...
1
vote
0answers
30 views

Import related_skus in magento 2.3.5 problem

After upgrading Magento from 2.1.7 to 2.3.5, when making a manual products import through the admin, the related products are not attaching to the products, no errors are being shown. I've tried ...
0
votes
2answers
31 views

How to show related products Magento 2.3.5

I want to show related products on product page only from my custom module. I am not sure if I can or is it possible to do it. I am doing a check by if my attribute is enable I will change the outcome ...
1
vote
0answers
154 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....
0
votes
1answer
164 views

Magento 2.3.5 - Display block on product page only if product got related products

On our productpage we want to display a block, only if that product got related products. How can I check in M2 if the product got related products?
2
votes
2answers
131 views

Magento 2 : which tables is used for Related Products, Up-Sells, and Cross-Sells?

I'm trying to get which table saves the Related Products for items and order-items? Is there any way to know how many items sold by these property. I try to check this table sales_order_item but I don'...
2
votes
0answers
19 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
1answer
349 views

How can I increase the number of related products shown on product detail page in Magento 2? [duplicate]

I am running Magento 2.3.3 and currently show 4 products on the product detail page. Where do I go to increase that number to 6? I have found nothing in the admin panel.
1
vote
1answer
264 views

Magento 2.3 - Get category of item related foreach

I want to load the category name and category url of the item that is displayed as a related item on the productpage. So inside the foreach element, I want to load the category name and url of the ...
0
votes
1answer
17 views

related products showing even if disabled

Magento 1.9.3 custom code. I have a foreach loop for related products to show in a custom piece of code for the product view page. here is the code. <?php foreach ($allRelatedProductIds as $id): ...
0
votes
1answer
21 views

replace cross sell with related on cart page

I know the correct answer is "why should you, cross sell products are supposed to be shown there". But i got a stubborn customer who wants to show the related products on the cart page. What is the ...
1
vote
0answers
71 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 ...
0
votes
1answer
167 views

Show related products on category view - Magento 2

Is it possible to call out the related products on category pages? So within each product in the grid, it would also display the full list of that product's related products.
2
votes
0answers
280 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 ...
0
votes
2answers
617 views

Create custom attribute same like related products in magento 2

I want to create a custom attribute as "Similar product" which will behave like "Related products" attribute. How can i do that in magento 2?
0
votes
1answer
51 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
1answer
33 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. ...
1
vote
0answers
24 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 ...
0
votes
0answers
127 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
35 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 !
2
votes
1answer
774 views

Need Related Products in bottom of product detailed page

I need to display related products below the description(bottom of the page) but in theme it is coming right side of the page(we are using Porto theme). Could anyone please tell me how to display ...
0
votes
0answers
494 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){ $...
2
votes
1answer
591 views

How to change product image on swatch selection on related product on product view page in Magento 2?

I have color swatches on related products list on product page. I want to change product image on the basis of swatch selection on view page. How can I change image?
3
votes
2answers
1k views

Magento 1.9.3.X: Get all related products of a product

I need to retrieve related products from a particular product with id. I tried using the getRelatedProductCollection method unsuccessfully, not sure if this method is. I need to get these related ...
3
votes
0answers
36 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? ...
0
votes
1answer
160 views

How to move related products at very bottom of product page?

I want to display the related products at very bottom of the product page. How can I move it? Can anyone please explain me?
1
vote
1answer
1k views

How can i disable Related Post tab on product page magento 2?

I want detail tab to active at first also related product tab to be hidden or disable.
2
votes
0answers
62 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 ...
0
votes
1answer
22 views

Assign related products from categories (Magento 1)

We have a magento store and we have over 1000 products listed. We want to assign random related products, but they should be within the category. For example, if a product is listed under Men >> T-...
1
vote
1answer
2k views

Magento 2.3: Error Assigning Related Products

Trying to add some related / cross-sell and upsells to products in the admin but receiving the following error after saving the product: The linked products data is invalid. Verify the data and try ...
1
vote
1answer
543 views

How to show both at same time Upsell and Related Products In Product View Page Magento 2

I want to show Related and Upsell both at the same time in my product view page. I tried to change catalog_product_view.xml many times, but it displays me only upsell products not related. anyone, ...
2
votes
1answer
641 views

How to fix the related product issue in admin after migrated to magento 1 to magento 2.3

I am using Magento 2.3.0 I have migrated products from Magento 1 to Magento 2. I can see related products in product detail page in the front end and it is proper and also I can find related products ...
1
vote
1answer
774 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
71 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 ...