Questions tagged [product-linking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
2answers
595 views

Magento 2 proxy class override

I need to override the class \Magento\Catalog\Model\Product\Link using preference, which is working fine,but the above mentioned class has a proxy class generated automatically \Magento\Catalog\Model\...
6
votes
3answers
1k views

How do I assign associated products to a grouped product programatically in Magento2?

I have the following abridged code that I believe should assign a product to a grouped product; however when ran it doesn't create the assignment; that is - no entry is saved into the ...
3
votes
3answers
34k views

Showing related products in product view page

I'm working on a website where I'm using Magento 1.7. I want to display the related product of the current product on product view page. I tried many links like these, but none of them worked for me. ...
2
votes
2answers
2k views

Make record field as a hyperlink in Magento 2 Grid

I've created a custom grid, and in my custom grid there is a product id column, I've created it like this: <column name="product_id"> <argument name="data" xsi:type="array"> ...
2
votes
1answer
340 views

Up-sell: adding a description to the product link

I have three products: The first one is a main product which has the second one as up-selling product. They pretty much fit together because they are related somehow (for example a MP3-Player and some ...
2
votes
0answers
371 views

How to link product in parent category to same product in sub category

I've got a parent category (clothing) and a subcategory (jeans). There's a product called "hip blue jeans", which is assigned ONLY to the subcategory "jeans" and NOT to it's parent category "clothing"....
1
vote
1answer
71 views

Magento 2: Upsell programmaticly add products only adds last item

I am trying to add upsell products automaticly with the Magento\Catalog\Api\Data\ProductLinkInterfaceFactory class, I added following code: EDIT CODE IS UPDATED WITH AN WORKING EXAMPLE $i = ...
1
vote
2answers
98 views

link to a specific ID

O.K my site is on a demo server, and I am trying to link an image on a product page to a separate specific Product. I am trying a simple... <a href="{{config path="web/unsecure/base_url"}}3z-pro-...
1
vote
0answers
173 views

How to add in a Flipping Book Publisher html file into the Product Image Section?

I have the product Flipping Book Publisher and I have created a flipbook. What I want to know is, is there any way to add this into where the static product image goes? If not, how can I add this ...
1
vote
1answer
116 views

How can i create Product Link if click Items Ordered products from Order View

How can i create products link, if i click Items Ordered Products in Order View, its go to products page in website. So, i can i view directly from Order View page.
1
vote
1answer
497 views

Link Grouped Parent/Children With Default Quantity set

I have been looking into programmatically attaching children to their parent (grouped) products, but with the default quantity set as well. There seems to be little to no information on how to do more ...
0
votes
2answers
976 views

update only related products programatically - magento 2

I follow this answer for update related products, It works but it will delete cross sell and upsell products of parent. is this default behavior or did I something wrong? //For testing load one ...
0
votes
0answers
20 views

Add parent url to simple product screen

I need to add a block on a simple product page which contains a url link to the parent if it exists. Block would be positioned under the short description. I have seen lots of code examples (some are ...
0
votes
1answer
79 views

Error on Magento 1.9.2.2 running with Redis cache

I tried to migrate the pacmall.net server to my local WAMP machine because I installed the Redis server on my Windows 8 system and Redis client extensions on the WAMP. I was able to see the frontend ...