Questions tagged [related-products]

Denotes questions about Magentos related products feature.

Filter by
Sorted by
Tagged with
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
76 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 ...
1
vote
1answer
2k views

Where is related product place in Magento2?

In product view xml , i found that <referenceContainer name="content.aside"> <block class="Magento\Catalog\Block\Product\ProductList\Related" name="catalog.product.related" ...
2
votes
2answers
1k views

Ultimo - 'Related products' owl Carousel

I am using Ultimo theme. Does anybody know how to change the scrolling direction of the 'related products' slider? The slider is based on the popular Owl Carousel. I would assume the code for this ...
2
votes
1answer
845 views

Magento 1.9 not able to save upsell/related/cross sell products

I upgrade my store to last Magento version 1.9.2.4 and I add ssl, When I try save a new product or edit an existing product in Magento everything is saved correctly except upsell/related/cross sell ...
1
vote
0answers
91 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
1answer
419 views

Custom Block generating an error on template: Magento

I have CMS block in magento admin and it included the following code: <div id="featured-products" class="tab">{{block type="featuredproducts/listing" template="featured/featuredproducts/...
7
votes
3answers
1k views

how to add default products to related products list

I want to add default products of certain ids(example- 1,5,7,3) to be added to the list of related products always with all the products at the end for the product page and need not store in database, ...
1
vote
2answers
120 views

Missing cross-selling and related products option in admin

I notice in several websites about Magento mentioning the "Related Products", "Up-Sells" and "Cross-Sells" options in the admin backend under the "Manage Products" section. However, when I log into ...
0
votes
0answers
644 views

How can I Get the Related Product Slider

How can I Get the Related Product Slider on Product Detail Page? I am Using Magento 1.9.2.3 Version.
3
votes
2answers
12k views

How to get the thumbnail image with getAttributeRawValue

I have a script to show related products in order confirmation emails but it gets the large, main image and not the thumbnail. In some emails clients this splatters these gigantic images and messes up ...
2
votes
1answer
3k views

Magento 2 - Quantity Field on Related Products Listing

I'm trying to add a quantity field to the related products section on my product page. I'm overriding module-catalog/view/frontend/templates/product/list/items.phtml in my theme. So far, here is my '...
7
votes
2answers
939 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
1answer
94 views

Related products as a dropdown

Natively I can see its possible to have related products block on a product page but is it possible to not have it as a block but to just have a simple dropdowns based on categories. For example if I ...
0
votes
1answer
437 views

How to view related products for all products in compare list?

I want to add the related products block to the compare list, however I am getting a fatal error Call to a member function getRelatedProductCollection() on a non-object. I suspect this is because I ...
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
190 views

show different products related product on product detail page by id

i want to show related of product other than current product on product details page by product id , how can i do this is there way to call related.phml block with different id than of current product ...
5
votes
3answers
19k views

How to show related products in product view page in Magento 2?

How can I show related products on bottom section of the product view page? I want to show 3 related products in bottom part of product view page in Magento 2
0
votes
1answer
148 views

How to add Recently visited product in product page left column?

I want to show recently visited product in product page left column. I am new for magento page customization. Can you guide me a right way? Working code, Output: Now i want to show product image ...
1
vote
0answers
29 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.
9
votes
1answer
3k views

CSV Import: How can I import related products in Magento 2?

How can I import related products via csv in Magento 2? In my csv file I have a row with attribute related_skus with example data "11-111,22-222" for a product. But in admin Products->Catalog in this ...
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
1answer
17 views

Setting “related” just to one product

Is it posible to set, for example related product: I set "product_2" as a related product when managing "product_1". Now on frontend when I visit the "product_1" page I can see "product_2" in the ...
1
vote
1answer
55 views

Related products select button missing and Size attribute in related products

On this page I have added Related products. where is the select button, to select a product? those shirts are in different sizes. How can I display the Size attribute here? So users are able to ...
0
votes
1answer
497 views

Automate cross-sell, up-sell and related products

I have a designed theme that i like and i have to manually set cross sells and up-sell and related products. If i install an extension from third party, the design will not be the same. I would like ...
0
votes
1answer
140 views

related products not getting in a quote items

When I add a product to cart then its related products will be added automatically with it and it's working. But, I want to make the price zero on the cart page for related products only, as they will ...
0
votes
1answer
65 views

How to add “getAttributeText” to “related view” section?

I am getting the error Fatal error: Call to a member function getAttributeText() on a non-object in /catalog/product/list/related.phtml on line 21 while add "getAttributeText" in the file /catalog/...
0
votes
1answer
871 views

Cart page - Get Related Product with URLs (including the category)

For each product in the cart I'm loading its related products. $related_product_collection = $_product->getRelatedProductCollection() ->addUrlRewrite() ...
2
votes
2answers
353 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
3k views

Related and upsell products not showing

Hi am currently attempting to code my own view.phtml for my products, but the related products and upsell are not showing, why could this be ? My local.xml: http://pastebin.com/ZEr51avR My view....
0
votes
1answer
358 views

How to randomise and limit related products?

I have been working on my own theme from the default RWD on 1.9.2.1. I would like to limit the related products to show only 8 products instead of all of the say 139 I have currently for a single ...
0
votes
2answers
3k views

implement automatic realated ,upsell, cross sell products

how to implement automatic Related , upsell, cross-sell products. we uploaded lot of products. but there is no Related , upsell, cross sell products. What we want is through programatically how we ...
0
votes
1answer
154 views

Can't save products after setting related items (Invalid argument supplied for foreach())

I'm trying to set related products programatically, using the following code: $product = Mage::registry('current_product'); $id="549"; $data=array($id=>array('position'=>1)); $product->...
1
vote
0answers
189 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
1answer
383 views

Where is location of “Related Products” and “Cross-sells” collection of function

I am working admin backend module. I want to know location of Related Products and Cross-sells product-collections which open when we add a new product from admin panel.
2
votes
1answer
873 views

Magento RWD Theme: How to move related products to a new tab?

I am fairly new to developing in Magento, and currently on a local server developing a custom theme. Now, what I want is to move the related products from it's current default location, to residing in ...
0
votes
1answer
296 views

“Reset filter” button missing in admin panel completely

I have used "Reset Filter" button before in various screens, now i tried to add related products and I am not able to add it as I couldn't find the "Reset Filter" button and also no way to search for ...
1
vote
2answers
2k views

product collection still show not in stock products

Hi I'm going crazy with this function. Although I added In stock Filter, it still return Not in Stock products. Where I'm wrong ? public function getRelatedProducts($limit = false) { $product ...
0
votes
2answers
215 views

URL redirection in magento

I'm new to Magento development. I was trying to display related products in the product view. While method ->getName() works fine, ->getProductUrl() renders the path of the actual product. I ...
1
vote
0answers
537 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
1answer
410 views

Use Category of products for Related Products

I have a large number of products that share a list of about 52 related products, which I am displaying in a slider on the product page. I would like to take these 52 products and put them in their ...
3
votes
1answer
653 views

Magento related products disappears with item max qty in cart

In Magento we have set "Display Out of Stock Products" => "Yes" On product pages, we have a "Related products" section (related.phml => if($this->getItems()->getSize()):) However when Maximum ...
2
votes
1answer
99 views

Re-save entire catalog's related products field via SSH php script?

I'm trying to re-save the "related products" field for each item in the catalog via SSH. I've seen other answers do something similar so I've attempted to replicate it with what little understanding I ...
0
votes
2answers
1k views

Add to cart button in related products leads to some view source page

I am bit new to magento am facing an issue.i added add to cart button to related product but when cliks on it it open a new page showing a source code of something.am adding a screen shot ![Page ...
0
votes
0answers
94 views

Show configurable products on product info page

I am trying to show configurable products in the upsell block on the product info page. i have already "linked" the products, cleared cache and reindexed data. but still not showing up.
0
votes
3answers
6k views

Moving related products from right sidebar to product view page template

I've been looking everywhere but no luck with anything that works. I have Magento ver. 1.9.2.0 and I'm trying to move the related products block to the product view template using the Local.xml. I ...
0
votes
1answer
165 views

Wrong tax rates for grouped products in related block

The shop I am working on shows wrong tax rates in related block. Instead of the correct 19% it shows 0%. Changing tax rates in backend leads to no effects. So I think there is no wrong ...