Questions tagged [related-products]

Denotes questions about Magentos related products feature.

63 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
788 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....
6
votes
2answers
693 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 ...
3
votes
0answers
359 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 ...
2
votes
0answers
459 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
333 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
733 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
22 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 ...
1
vote
1answer
74 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
40 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
25 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
17 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
50 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
0answers
52 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
67 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
15 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
186 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
41 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
30 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
618 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
776 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
60 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
145 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
5k 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
238 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
28 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
351 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
82 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
26 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
181 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
498 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
8 views

Discount on related products magento 2.3.1

We are using magento 2.3.1, I was wondering if there is a way to apply a discount on related products if a product is added to cart. Do I need to create a custom rule or something? any suggestions? ...
0
votes
0answers
15 views

Related products broken on product detail page

On Product, detail page design is being broken.We didn't have done any customization. Please refer @ https://drive.google.com/file/d/1WM03YuvMAlCnt54JqG_B6McDZYPHxyG2/view
0
votes
1answer
18 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-...
0
votes
0answers
28 views

Magento 2 get third product image for related products

Related products are now showing the default image, How can I change it so that the 3rd image is displayed for every item in the related section? I have looked at $_product->getMediaGalleryImages()...
0
votes
0answers
13 views

How can we retain full path url for related products when we import data in bulk?

We have loaded data for the related products using bulk import functionality in our Magento admin panel. But the urls of the products are redirecting us to the category listing page instead of the ...
0
votes
1answer
212 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 ...
0
votes
0answers
18 views

Related product update error

I tried to update the related product via script in magento 1.9.3.7 but i am getting one error. I don't have an idea related to this error. <?php ini_set("display_errors", 1); //require dirname(...
0
votes
0answers
20 views

is it possible to filter related products using status enabled filter Attribute in products details page magento 2 custom theme

Is it possible to filter related products using status enabled filter Attribute in products details page magento 2 custom theme in related.phtml. Actually i am trying to get only in stock related ...
0
votes
0answers
107 views

how to get custom attribute value for related products in product details page

I am overriding default related.phtml in custom theme Magento_Catalog but data is not showing properly.If Any One have idea please help me. <?php if ($currentProduct = $block->getProduct()) {...
0
votes
0answers
114 views

Magento : Please specify the product(s) quantity

I have one simple product in that related products tab i have added 8 products. i can see that products in bottom of this product detail page with checkbox like select all product to add to card. ...
0
votes
0answers
12 views

Magento2: Issues with display products related by brands

I have a strange error with displaying products related by brand. I have all products assigned correct to brands the only problem is that for one brand it shows correct related products by brand: ...
0
votes
1answer
87 views

Related product not adding to cart in Magento 2

I made a custom module for adding products to cart with help of ajax. Here I'm adding related products too. But the problem is that related products are not adding to cart. In my controller public ...
0
votes
1answer
391 views

Magento 2.2.3 Related Products add to cart button issue

i'm just wondering if anybody faced with following issue. I have enabled "add to card" button on my Related products as per this article Now button appeared but the problem is that is actually does ...
0
votes
1answer
88 views

Restore Magento 2 attribute and related products

I have accidentally deleted the attribute set from the store and due to this the products also deleted from my multistore shops. by just pressing this I have found an extension in GitHub trashcan ...
0
votes
0answers
32 views

How to get first selected related products in magento2

I'm working with Magento 2, I have one product in cart and I want to show related products for cart products. I get current product using the quote to get all items. Once I have fetched current ...
0
votes
1answer
249 views

how to display more related products in magento 1.9.3

As a beginner i dont know much about custom .my query is On my product page it shows 3 related product only. i want to add one more related product here. how to do this. Thanks for any advice
0
votes
1answer
62 views

How to create Bestselller product and Related product and call it on the cms page in magento 2.2.0

I want to display Related products and BestSeller products on two different pages.
0
votes
1answer
57 views

Restoring related products from database back up

All of our related products have disappeared. If I look in the database the 'catalog_product_link' table is empty. I have a db backup which has the data in it. Can I just import the data from the ...
0
votes
1answer
1k 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
1answer
79 views

How were the related products added to the site?

I am freelancer with a little knowledge of magento. The client gave me the task to determine how were the related products, up-sells and cross-sells added to the site. Can you help me with it? There ...