cancel
Showing results for 
Search instead for 
Did you mean: 

Display simple product urls & thumbnail in magento 2 bundle selections

Display simple product urls & thumbnail in magento 2 bundle selections

In a bundled product I would like to be able to show the product url  and thumbnail from a simple product or the selected item within the bundled product as a "view item" link and there thumbnail.
So when this is selected the user is able to view the simple product details via the link.

 

I am kind of new to the backend side of Magento 2 so hopefully someone can help, if you have a link on how to achieve would be great as well.

 

Thanks.

1 REPLY 1

Re: Display simple product urls & thumbnail in magento 2 bundle selections

To display a "View Item" link and thumbnail for the selected item within a bundled product in Magento 2:

  1. Create a new attribute for the bundled product to hold the selected simple product's ID.
  2. Assign the attribute to the bundled product and add the simple products as selectable options.
  3. Customize the frontend template to show the "View Item" link and thumbnail based on the selected option.
  4. Implement backend logic to retrieve the selected option's details and pass them to the frontend template.

Please note that modifying Magento's code requires caution, and it's recommended to work with experienced developers if you're new to Magento development.