Questions tagged [product-relations]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 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
  • 131
0 votes
1 answer
288 views

After Migrate catalog and category some custom attribute for category not saved

I did migration for catalog and category in fresh Magento1.9.0.1. to Magento2.2.7 migration was successfully completed after lot's of efforts :) Actual issue here But after that i have copied ...
Zaheerabbas's user avatar
  • 2,058
0 votes
0 answers
15 views

Restrict buying of only the related product

I'm using Magento 2.3. I need to have the feature, where I've a two products A & B. Now, a customer can buy product A and can buy product B only with product A. Product B cannot be sold ...
Siddharth Naik's user avatar
2 votes
0 answers
24 views

Magento 2: How can I relate/link custom module data to products like Up Sell or Cross Sell?

I have created modules to store complex information like Dangerous Good Informations (UN-No, Proper Shipping Name, Class, Packing Group etc) or Customs Numbers (Taric Codes). Now, I want to relate/...
Dr. Christian Kusche's user avatar
1 vote
0 answers
41 views

Using QTY in Rule-Based Product Relations

Using Magento EE 1.14 and would like to be able to use the inventory quantity for rule-based product relations (related, upsell, cross sell). However, I don't see a way to make the quantity available ...
shan3's user avatar
  • 11
1 vote
0 answers
1k 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 ...
Alexander Goroshev's user avatar
5 votes
1 answer
4k views

what is difference between catalog_product_super_link and catalog_product_relation table?

I have created a configurable product with 2 simple products and child products and parent product relations are added in two different tables(catalog_product_super_link and catalog_product_relation ...
Niraj Patel's user avatar
0 votes
1 answer
131 views

Easiest way to determine if product is part of a configurable in an observer?

I am working on some code that makes a call to some azure functions that sync product data to our CRM / Inventory system. One thing that magento does when an admin user makes a change to a ...
CarComp's user avatar
  • 1,206
0 votes
1 answer
726 views

PRODUCT VIEW CUSTOM HOW TO :::

this is the code of the product view CODE PRODUCT VIEW I have try to change the design but it seams i get error i have to move related products ( look picture) i dont need text or size or something ...
Yasin2018's user avatar
  • 167
2 votes
0 answers
568 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" ...
JGeer's user avatar
  • 1,446
4 votes
2 answers
526 views

Where is setDoNotUseCategoryId() declared and what does it mean?

While getting related products, cross sells and upsells and collections, the function setDoNotUseCategoryId() is used. Where is it declared and can you explain the usage? foreach ($this->...
mano's user avatar
  • 366
1 vote
0 answers
214 views

Magento 2 category and attributes cleared after adding a configurable product

I'm trying to add a configurable product, but after generating configurations and saving the the product I get the following error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate ...
Tom's user avatar
  • 471
1 vote
0 answers
35 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.
Luca Coppola's user avatar
0 votes
1 answer
375 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 ...
Vaishal Patel's user avatar
1 vote
1 answer
55 views

Product Relation removed automatically

I am using Magento 1.13.1.0. and recently i found that the related products I assigned from Admin got removed after some time. I check the cron and its already working fine. Is there any other ...
magento2new's user avatar
2 votes
1 answer
1k 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 ...
JPMC's user avatar
  • 131
0 votes
1 answer
643 views

Programatically modify related products

I'm trying to programmatically manipulate the product relations in a Magento store. From what I've read, setRelatedLinkData should be the way to go. As I simple test, I'm just trying to replace a ...
Liam Wiltshire's user avatar
1 vote
1 answer
68 views

Display all related products independently of cart

As per answerfrom Patrick Steenks there, when a related product is already in cart, it is not displayed in the related product block. How to display it anyway?
Memes's user avatar
  • 708
1 vote
1 answer
82 views

How do you make Magento CE include virtual products in the related product list?

I am trying to create a relation between a bundled product and a virtual product. So I thought: "Let's just add the virtual product as related product." However it was not showing in the related ...
Ogier Schelvis's user avatar
0 votes
2 answers
2k views

Related Products with same attribute

I am trying to do the same thing in Magento CE 1.9.1.0 . Basically I want to edit the related products block to show all products that have the same value for a specific attribute. Basically I have an ...
Jayreis's user avatar
  • 707
1 vote
2 answers
99 views

Common attribute values

I've ripping my hair out trying to understand this I would think that Magento is capable of doing what I am about to describe, but I haven't the slightest clue how to do it. , Basically, my question ...
dockeryZ's user avatar
  • 165
1 vote
1 answer
37 views

buy "y" only if you buy "x"

I have in the shop 2 categories x and y. Customer has to have the ability to: buy products from category "x" normally purchase from category "y" should be locked. He cant buy it separately From cat. ...
Holian's user avatar
  • 45
2 votes
2 answers
64 views

Is it possible to display on the product page in block "Related Products" products descriptions?

Is it possible to display on the product page in block "Related Products" products descriptions? The name of the related products displayed: <?php echo $this->escapeHtml($_item->getName());...
Joe's user avatar
  • 151
0 votes
1 answer
513 views

RWD theme how to change related product orientation?

Right now it is vertical, whats the best way to change the products to a horizontal view?
famous's user avatar
  • 1
0 votes
1 answer
410 views

Disable filter for related product

As per the answer of pspahn in the thread https://stackoverflow.com/questions/5253606/magento-related-products-not-displaying-on-product-page , there is a filter that makes Magento not display the ...
Memes's user avatar
  • 708
1 vote
1 answer
4k views

Removing all Related Products

Long time reader first time poster. I have about 1200 products in my Magento 1.9 store. I'd like clear out all of the existing Related Products (setting all products to have no relations). Is there ...
studio2f's user avatar
  • 313
3 votes
1 answer
1k views

How to display custom attribute in related product in related.phtml

I need to display custom attribute in related product. I have tried get value of custom attribute in related product from related.phtml file. app/design/frontend/base/default/catalog/product/list/...
Vishal's user avatar
  • 41
3 votes
1 answer
870 views

Magento FPC - What makes this stay up to date?

See below for a rewrite of this question. A Magento EE 1.13.1.0 site that I'm working on is having some issues with Banners (powered by widgets.) The banners are caching when FPC is turned on, and ...
Tyler V.'s user avatar
  • 2,967
0 votes
1 answer
155 views

Need some help with random related products code

I've been playing with some code that will display random products from the same category in the related products block. The code works, however I would only like to display products that contain ...
SR_Magento's user avatar
  • 5,209
2 votes
3 answers
372 views

how to order products in related.phtml and item.phtml by specific attribute?

related.phtml is in app/design/frontend/enterprise/default/template/targetrule/catalog/product/list/related.phtml I wanted to order the products by sku in app/code/core/Enterprise/targetRule/Block/...
Nickool's user avatar
  • 1,069
0 votes
1 answer
906 views

related products by brand, coding

I want to display in the related products items from the same brand in order from the latest added. I was looking for an extension that can do it and didn't find it. So I figured out that the solution ...
Anton Kastritskiy's user avatar
1 vote
1 answer
202 views

Adding Metadata to a Product-Category Relationship

I have a category that represents different store vendors, which are then assigned to the appropriate product. The goal is to attach a unique URL to the category relationship, so each product ...
Daniel's user avatar
  • 11
1 vote
2 answers
451 views

Only display products with images in related products block

The following code is from the related.phtml file and I believe this is what needs to be modified to filter out products without images: <?php if(!$_item->isComposite() && $_item->...
SR_Magento's user avatar
  • 5,209
1 vote
2 answers
3k views

How to display products which have same attribute value as related products in Product view page?

I have a requirement where, in product details (view) page, I need to display related products which are having the same color as of the product being viewed. For example, I'm on a page which shows a ...
Shathish's user avatar
  • 2,689
8 votes
2 answers
14k views

Cross-sells and up-sells in Magento

Please clarify cross-sells and up-sells with more Magento friendly definition and examples. What is functionality in real life of this taxonomy? How should we use these features correctly to increase ...
mageUz's user avatar
  • 6,224
1 vote
2 answers
2k views

Is there any way to add the related products simultaneously?

i have added a products in the magento store. and now i want to add the related products in each of the products. problem is that, i am adding the products one by one for each product and it is taking ...
Waseem's user avatar
  • 815