Questions tagged [related-products]

Denotes questions about Magentos related products feature.

Filter by
Sorted by
Tagged with
0
votes
2answers
377 views

Magento : Add product qty box in related product

I have a related product list in product detail page. Default there is not qty box available to edit qty i want to add qty box and also it's qty add to checkout/cart page while add specific qty.
1
vote
0answers
49 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
33 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 ...
5
votes
1answer
662 views

Need to show related products of simple product in configurable product

I need to show related products block on configurable product page (as it is by deflault), but instead of related products of configurable product i need to show related products of simple products ...
0
votes
1answer
676 views

Related Product Rules not showing up in magento2?

I am trying to create Related product rules by following below link. https://www.bluefishgroup.com/insights/ecommerce/related-products-rules-in-magento-2/ When i navigate into Marketing i can see ...
0
votes
1answer
152 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
596 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 ...
1
vote
1answer
885 views

Add to Cart, Add to wishlist like product list page on related products

How to display add to block on related products similar to it is displaying on list page?
0
votes
1answer
133 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
40 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 ...
1
vote
0answers
978 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
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
303 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
2answers
90 views

Check if product got CustomLinkedProducts on view.phtml

I use the following extension: https://github.com/Marko-M/Inchoo_CustomLinkedProducts But now I want to check in the file /app/design/frontend/theme/theme/template/catalog/product/view.phtml if the ...
0
votes
1answer
64 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
378 views

How to move reivew block after related product in magento 2?

How to move related product block before product review block on product details page. i will try some code but no luck with this. i want to move related product block in to tab panel or review block ...
1
vote
0answers
65 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 ...
0
votes
2answers
3k views

Magento 2 - Add Owl Slider in Related Products using requirejs-config.js

Theme Level app/design/frontend/<Vendor>/<Theme>/requirejs-config.js Owl Carousel JS/CSS path Vendor_Theme/web/owl.carousel/assets/owl.carousel.css Vendor_Theme/web/owl.carousel/owl....
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
2answers
805 views

Magento 2 has stopped showing related products on front end product page

Our related products are not showing on the front end no longer. They did and looked good however it does not work no more. Can anyone help?
1
vote
0answers
159 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 ...
0
votes
1answer
62 views

Get two previous and two next products as related products in magento1.9

How do I get two products that were added just before current product and two products that were added just after the current product in a same category as the related product? Here is how I am ...
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?
1
vote
1answer
122 views

Get related products per attributeset ID

My products have a bunch of related products, some of which are in a separate attribute set. I want to split these out in two different views on view.phtml. I figured to need addAttributeToFilter and ...
1
vote
2answers
1k views

How to get load related products of simple product using ajax

I have a configurable product and on selection of its simple product I need its respective related products loaded via ajax. Any help will be highly appreciated. This is how I call my ajax: <...
4
votes
0answers
405 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
1answer
2k views

Crosssell Products on Product Page with Magento 2

I have been trying to get crosssell products to show on the product pages. however adding the block does not work as it relies on the product being in the cart. I have tried to overcome this by ...
3
votes
4answers
5k views

Magento 2 : How to display swatches in related products?

I added related products list in product details page. I see there all related products list are display but now i need to display swatches in this list. How can it possible for related products list. ...
1
vote
1answer
6k 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
286 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('...
0
votes
1answer
48 views

Automatically set inverse related products

I need to have that when saving a product it should automatically be set as related to its related products UPDATED so it also removes the inverse related product when removed
0
votes
1answer
71 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 ...
1
vote
2answers
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
88 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 ...
0
votes
1answer
122 views

Attribute code in related products [duplicate]

I am using $_item->getData("attribute_code") to fetch the attribute code in the related products on the product page, but it does not seem to work with multiselect attributes. Is there a variation ...
0
votes
1answer
439 views

Magento related products sort order not working

For some reason the sort order for related products is not working. How can I sort the order asc to desc (low to high)? Here is my current /catalog/product/list/related.phtml file: <div class="...
1
vote
0answers
30 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: ...
0
votes
2answers
3k views

Move related products to custom div in custom phtml template

I have made a custom phtml template called configurator.phtml on the product view page, like this: <referenceContainer name="page.wrapper"> <block class="Magento\Catalog\Block\...
0
votes
1answer
428 views

related product not displaying out of stock product in magento 1.9

I have a problem in my single product view page the related product not displaying the out of stock product but in category list it display all products including out of stock product
0
votes
1answer
845 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.
1
vote
1answer
383 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?
0
votes
1answer
1k views

How to copy my Related Products to Upsell Products

i- need to change relaeted products in upsell products . any suggestion how to do fast ? our shop have more than 35k products now we have create related products but we need to change in upsell
6
votes
0answers
1k 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....
2
votes
0answers
520 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" ...
1
vote
2answers
2k views

How to select Related product random collection Magento 2.1.2 [duplicate]

How to get a random collection of related products, using the below code, protected function _prepareData() { $product = $this->_coreRegistry->registry('product'); /* @var $product \...
16
votes
5answers
2k views

Error on product page when you have related products and full page cache is on

I get this error on some products that have related products: Warning: Invalid argument supplied for foreach() in vendor/magento/module-catalog/Block/Product/ProductList/Related.php on line 129 This ...
1
vote
1answer
72 views

i want product page sidebar as related products instant of upsell products

here is my catalog.xml block: <block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml" /> here is my view.xml &...
6
votes
1answer
6k views

Magento 2 How to add custom product relations?

I am needing to add another related products attribute to associate multiple other products. I have found a solution for Magento 1: http://inchoo.net/magento/how-to-add-custom-product-relations-in-...
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
3k views

Magento2 how to create custom module to Show related products in minicart

Can anybody guide me how can I add the related products ti recently added item to cart in minicart in Magento2 I know that the magento2 minicart content is loaded by the Js layout. I have created ...