Questions tagged [related-products]

Denotes questions about Magentos related products feature.

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

Related Product Images are showing up really small compared to feature Product Images. Image attached

Related Product Images are showing up really small compared to feature Product Images. Image attached. I ran these commands but did not fix it. When I clear cache and hard reload. It will show the ...
0
votes
3answers
3k views

Magento 2 - How to show related products in a thumbnail slider?

I want to show related products and/or products to upsell in a thumbnail slider on product page. I am using a child theme derived from Luma. How should I achieve this? Is there anyway to integrate ...
2
votes
1answer
7k 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.
0
votes
0answers
31 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 ...
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
25 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....
2
votes
0answers
53 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
0answers
8 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. ...
1
vote
1answer
855 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
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() -&...
0
votes
1answer
35 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?
1
vote
1answer
32 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
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 ...
0
votes
1answer
1k views

Add Custom catalog_product_link_type Into database [Related Products, Up-Sells, Cross-Sells Section] Product Add

I Am Creating Custom catalog_product_link_type, I've added Additional Section in Related Products Section And It is Working. But How to Save Values Of This additional section Into Database. I have ...
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 ...
2
votes
1answer
827 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 ...
2
votes
1answer
26 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.
0
votes
1answer
860 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.
0
votes
0answers
22 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 ...
1
vote
1answer
74 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
15 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): ...
5
votes
4answers
4k 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 ...
0
votes
1answer
916 views

How can I display the product short description in the related product template?

I need to display the related product short description in a magento 1.9 store. What do I need to add to the template->catalog->product->list->related.phtml file?
0
votes
1answer
17 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 ...
2
votes
2answers
2k views

How to remove related products check boxes on magento2

I've used app/design/frontend/<your_vendor_name>/<your_theme_name>/Magento_Catalog/templates/product/list/items.phtml to set $showCart = true; so that an Add to Cart button is used for ...
0
votes
0answers
43 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 ...
1
vote
0answers
38 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
39 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
91 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
1answer
127 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?
2
votes
1answer
139 views

How can I add an attribute to related products?

I would like to Add the sku to the related products. I am in the template Magento_Catalog/templates/product/list/items.phtml. This is what it looks like now- <?php /** * Copyright © Magento, Inc. ...
0
votes
0answers
79 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
11 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
18 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 */ ...
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
2answers
1k views

Show related product in cart page Magento 2

I want to show related product in cart page, each product at least will have 3 or more related product, is there a way to do this?
0
votes
0answers
59 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....
7
votes
2answers
920 views

Magento2 Extending Magento\Catalog\Block\Product\AbstractProduct Class

I wanted to add some extra custom methods to the block classes: Related Upsell Cross-sell Each of these extends the Magento\Catalog\Block\Product\AbstractProduct But using di.xml preference I was ...
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 !
-1
votes
2answers
3k views

How do you display more than 3 related products in Magento 1.9?

Magento is only displaying 3 related products; I'm looking to display 5. What am I doing wrong/What do I need to change?
2
votes
1answer
328 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 ...
1
vote
1answer
268 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?
0
votes
0answers
206 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){ $...
0
votes
0answers
110 views

How to limit “Related Products” in Magento 2.3.2

I am used to be able to set the "Related Product" limits in /app/design/frontend/theme/theme/Magento_Catalog/product/list/items.phtml by changing case 'related': /** @var \Magento\Catalog\Block\...
0
votes
0answers
10 views

Upsell Products

After adding an item to your basket from the category page, i have a pop up showing you the product you have just added, you cart total etc. I was wondering if its possible to get the upsell/related ...
3
votes
2answers
567 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
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? ...
0
votes
1answer
71 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?