Skip to main content

Questions tagged [related-products]

Denotes questions about Magentos related products feature.

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

Getting "related products" to show on front end

I have setup a number of products via admin and added in related products successfully. I have flushed Caches and re-indexed yet my related products do not show on the front end and I have no idea why ...
Francis's user avatar
0 votes
0 answers
32 views

Show Related products in the popup modal

I am using this code to show the modal when product add to cart define([ 'jquery', 'mage/translate', 'underscore', 'Magento_Catalog/js/product/view/product-ids-resolver', '...
Rana Zain's user avatar
  • 676
0 votes
1 answer
23 views

Related Products show Huge Pixelated images

magento is displaying my related products as super enlarged pixelated images, how do I fix this?
keith's user avatar
  • 1
0 votes
0 answers
26 views

Product page filter

(link to webshop) https://sanitairkamer.nl/mondiaz-aivy-badmeubel-120cm-chai-met-wastafel-solid-surface-urban-midden-1-kraangat-en-spiegelkast-sk77173.html I'd like to re-create the product page like ...
SanitairSuperShop Marketing's user avatar
0 votes
0 answers
21 views

Show Related Product Price rule Products in the Cart Page

I am using this code in the Magento_Catalog (items.phtml. switch ($type = $block->getType()) { case 'related-rule': if ($exist = $block->hasItems()) { $type = 'related'; ...
Rana Zain's user avatar
  • 676
1 vote
1 answer
123 views

Get product's related products based on rule

I am trying to get the related products from a specific product using the function getRelatedProducts. $relatedProductsArray = $productModel->getRelatedProducts(); if($relatedProductsArray &&...
Eliacim DAVILA - CENSERE's user avatar
1 vote
0 answers
35 views

Show upsell / related products in search results in Magento 2

Looking for some ideas on how to show the up-sell or related products in the search results. Let's say the customer is looking for Text123 that can be found in the description of 1 of our products but ...
CptCharlesG's user avatar
1 vote
0 answers
52 views

Magento 2 + Add inlineEdit feature in related products grid on admin product edit page

I want to add an inlineEdit feature same as admin customer grid, in related products grid on admin product edit page. For that I extended Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related ...
Dhara Bhatti's user avatar
0 votes
1 answer
41 views

Hide or Disable Related Posts on Product Description when there aren't any?

Can anyone help with this please? Please see the image attached. So assuming this is a template fix. Currently shows when there are related posts. But most products dont have it. How can you hide when ...
Toby J's user avatar
  • 1
2 votes
1 answer
141 views

I want to move the 'Did you mean' and 'Related serch terms' section to sidebar

I want to move the 'Did you mean' and 'Related serch terms' section to sidebar in the catalog search Page in Magento 2. currenty that both sections are appeared in 'search results' div. The 'sidebar ...
richardkevin's user avatar
0 votes
1 answer
43 views

Show Related Quantity of Products and Categories in the Search Bar

Now in the search bar products and categories are displayed. In the product and category header, I show the See All button that redirects to all related products and categories. I want to show the ...
Rana Zain's user avatar
  • 676
1 vote
0 answers
20 views

Upload of csv to add related products to a parent product scrambles order of skus in related_skus column

I use products that have related products (so they pull them automatically when the parent product is selected) - i need them as separate items for accounting/inventory purposes, but i sell them in ...
Maxime VERNEREY's user avatar
0 votes
0 answers
411 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/...
D.D.'s user avatar
  • 15
0 votes
1 answer
204 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 ...
Khaled Bin Amir's user avatar
0 votes
1 answer
23 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?
Alshihab's user avatar
  • 161
0 votes
1 answer
664 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 ...
JGeer's user avatar
  • 1,420
0 votes
1 answer
1k 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 ...
Ankan Bhadra's user avatar
1 vote
1 answer
602 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\\...
aich.khalid's user avatar
0 votes
2 answers
2k 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 ...
bambo's user avatar
  • 3
1 vote
2 answers
229 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 ...
Timothy Fisher's user avatar
0 votes
1 answer
244 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(...
Pontorez's user avatar
0 votes
3 answers
783 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. ...
Sathya's user avatar
  • 518
0 votes
1 answer
760 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 ...
JGeer's user avatar
  • 1,420
1 vote
1 answer
369 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
mechanic's user avatar
  • 440
0 votes
2 answers
421 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 ...
devhs's user avatar
  • 507
0 votes
1 answer
320 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, ...
devhs's user avatar
  • 507
0 votes
2 answers
394 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(...
Toma Margishvili's user avatar
0 votes
0 answers
102 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 ...
Pushpendra Singh's user avatar
0 votes
1 answer
491 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/...
Rahul Barot's user avatar
  • 1,122
0 votes
1 answer
61 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....
Robert's user avatar
  • 2,176
0 votes
1 answer
205 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 ...
David's user avatar
  • 21
1 vote
1 answer
335 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='{"...
Nagaraju Kasa's user avatar
1 vote
0 answers
110 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 ...
Kobi's user avatar
  • 11
0 votes
2 answers
51 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 ...
Jack Brooks's user avatar
1 vote
0 answers
478 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....
JGeer's user avatar
  • 1,420
0 votes
1 answer
436 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?
JGeer's user avatar
  • 1,420
4 votes
3 answers
3k 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'...
Abdulaziz Arjah's user avatar
2 votes
0 answers
97 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 ...
fadedout's user avatar
2 votes
1 answer
1k 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.
Petey88's user avatar
  • 47
1 vote
1 answer
711 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 ...
JGeer's user avatar
  • 1,420
0 votes
1 answer
34 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): ...
Craig Gillett's user avatar
0 votes
1 answer
37 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 ...
Bram Hammer's user avatar
2 votes
0 answers
160 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 ...
Pictick's user avatar
  • 21
0 votes
1 answer
372 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.
Jarxberg's user avatar
  • 123
2 votes
0 answers
575 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 ...
quickshiftin's user avatar
0 votes
2 answers
2k 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?
Nafsss's user avatar
  • 760
0 votes
1 answer
375 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 ...
Black's user avatar
  • 3,390
0 votes
1 answer
53 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. ...
Jason Dana's user avatar
1 vote
0 answers
53 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 ...
Dinesh's user avatar
  • 552
0 votes
0 answers
340 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....
Bhavana Thodeti's user avatar