Questions tagged [related-products]

Denotes questions about Magentos related products feature.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

If there any way to click "Set Recommended" on Related SKUs for selected SKU by CSV?

If there any way to click "Set Recommended" on Related SKUs for selected SKU by CSV?
user avatar
  • 1
0 votes
0 answers
14 views

Magento2 how to edit the item.phtml template for Related Products and Upsell Porducts?

In Magento2 I've enabled the Related Products and Upsell Products blocks. Everything's fine except for the template of the single item. I want to change that to another custom one. Here in app/design/...
user avatar
  • 13
0 votes
0 answers
18 views

Magento 2.3.2. How can I add the stock quantity column to the 'Related Products' admin grid?

Basically, I want to add related products that are in stock, rather than those that aren't, so I am looking to add the stock quantity column to the related products grid on the admin side in order to ...
user avatar
  • 25
0 votes
0 answers
35 views

How do I set a Simple Product (under Configurable) as Not Visible Individual, but still keep its associated Related Products?

Is there a way to set a Simple Product (under Configurable) as Not Visible Individual, but still keep the associated Related Products at the Simple Product level? I have specific Related Products ...
user avatar
0 votes
0 answers
35 views

Magento 2.4 Related Products Store View Scope

We have a Magento Cloud 2.4 instance with multiple stores. Some admin users only has access level on their specific store. When they add Related Products, it is successfully saved but Related, Cross ...
user avatar
0 votes
1 answer
28 views

Is there any Magento 2 extension for Google Recommendation AI

Last year, Google launched AI & Machine Learning based Products Recommendations AI. I'm dying to implement this on my Magento 2 site. Is there an out-of-the-box extension for Magento 2 to ...
user avatar
0 votes
1 answer
14 views

Add RelatedProducts by Category

I added related products by Catalog->products->select product->addrelated/crosssell..products. But I want add related products by category. How to do?
user avatar
  • 1
0 votes
1 answer
183 views

Related Products extend with Cross sell products - Magento 2.4

We use the following method to group related products based on their category: https://bitbucket.org/magstaging/groupedrelatedproduct/src/master/ Works perfect, thanks to Herve, but we want to extend ...
user avatar
  • 1,508
0 votes
1 answer
245 views

How to get product collection by Widget's Encoded Conditions in Magento 2.3.5

I have a widget with conditions_encoded (including Multiple Category Ids, Multiple SKUs) in one section of the admin panel. The requirement is to show the product list with custom pagination, custom ...
user avatar
0 votes
0 answers
19 views

Magento 2.3 Related Products with a Block and slider

I am asking a new question. I am trying to add a block to the related products, everything is ok, but also a slider must be added to the products since there are several. In this case, the slick ...
user avatar
0 votes
1 answer
75 views

call more than one graphql query in one schema.graphqls file

type Query { productReview: ProductReviewRatingsMetadata! @doc(description: "Retrieves metadata required by clients to render the Reviews section.") @resolver(class: "E50\\Graphql\\...
user avatar
  • 198
0 votes
1 answer
324 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 ...
user avatar
  • 3
1 vote
2 answers
84 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 ...
user avatar
0 votes
1 answer
135 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(...
user avatar
0 votes
2 answers
188 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. ...
user avatar
  • 458
0 votes
1 answer
392 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 ...
user avatar
  • 1,508
1 vote
1 answer
135 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
user avatar
  • 111
0 votes
2 answers
78 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 ...
user avatar
  • 387
0 votes
1 answer
133 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, ...
user avatar
  • 387
0 votes
2 answers
63 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(...
user avatar
0 votes
0 answers
32 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 ...
user avatar
0 votes
1 answer
273 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/...
user avatar
0 votes
1 answer
48 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....
user avatar
  • 2,096
0 votes
1 answer
37 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 ...
user avatar
  • 21
1 vote
1 answer
178 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='{"...
user avatar
1 vote
0 answers
69 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 ...
user avatar
  • 11
0 votes
2 answers
37 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 ...
user avatar
1 vote
0 answers
252 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....
user avatar
  • 1,508
0 votes
1 answer
252 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?
user avatar
  • 1,508
2 votes
2 answers
546 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'...
user avatar
2 votes
0 answers
54 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 ...
user avatar
2 votes
1 answer
630 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.
user avatar
  • 47
1 vote
1 answer
432 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 ...
user avatar
  • 1,508
0 votes
1 answer
19 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): ...
user avatar
0 votes
1 answer
23 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 ...
user avatar
1 vote
0 answers
100 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 ...
user avatar
  • 11
0 votes
1 answer
250 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.
user avatar
  • 111
2 votes
0 answers
402 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 ...
user avatar
0 votes
2 answers
1k 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?
user avatar
  • 710
0 votes
1 answer
131 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 ...
user avatar
  • 2,471
0 votes
1 answer
43 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. ...
user avatar
1 vote
0 answers
45 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 ...
user avatar
  • 492
0 votes
0 answers
224 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....
user avatar
0 votes
0 answers
41 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 !
user avatar
  • 1
2 votes
1 answer
978 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 ...
user avatar
0 votes
0 answers
621 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){ $...
user avatar
2 votes
1 answer
709 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?
user avatar
3 votes
2 answers
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 ...
user avatar
3 votes
0 answers
39 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? ...
user avatar
0 votes
1 answer
359 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?
user avatar
  • 1,124