same thumbnail for two different products having different attributes(id,sku,price, stock level)

I am developing online apparel store. our store has only two type products with different ID, price stock level and other attributes but we want the same thumbnail for both products and it does not repeat in store as thumbnail please tell any solution for this because I am new in Magento.


What you are describing is a grouped product.

A grouped product is an "abstract" product, in the way that you don't actually sell it as it doesn't exist.

Say you are selling boxes :

  • Box A : 60x60x60 | stock : 30 | sku : boxa | type_id : simple
  • Box B : 70x60x70 | stock : 15 | sku : boxb | type_id : simple

What you'll need to "gather" those 2 products is a grouped product

  • Box : no dimensions | stock : none | sku : box_g | type_id : grouped

It seems to be the easiest way to do it for me.

Similar questions

What's the correct way of having two different plugins for one method?
I have this afterGetList plugin in Vendor\Module\Plugin\Magento\Sales\Model\OrderCompanyAccount.php And in Vendor\Module\etc\webapi_rest\di.xml I want to add another afterGetList plugin. Vendor\Module\Plugin\Magento\Sales\Model\OrderComment.php And this time in Vendor\Module\etc\webapi_rest\di.xml If I enable one of these modules, they are working ...
Magento 2.4 MSI : How to programmatically set Notify Stock Level on Source and SKU
I would like to set Notify Qty from a script that reads a CSV file with Source, SKU and NotifyQty. It would probably need to enable notify qty for the products as well. I can do it with SQL query to inventory_low_stock_notification_configuration.notify_stock_qty, but that's probably not the right way.
Stock = 0, out of stock - then I process a credit note. Stock = 1, but still out of stock
Situation: Stock = 0, in_stock = no Then I process a credit note. Stock = 1, in_stock = no I would expect the in_stock to be set back to yes. The effect of this is that we have many T-shirts in 1 size of 1 SKU that apparently were returned some day - and now not seen in the store (so not sold). So they are in stock with qty 1, but their flag in_sto...
Magento rating (stars) on store level, taken from product level
We are looking to find a magento rating (stars) on store level. One that also would provide a block with the stars, etc. There are some examples out there. I have seen one with only text. For the extension experts: thanks
How can I get customer address fields to show on store level only (not website level)?
By default customer address fields are set at website level rather than store level. I would like to add the customer tax/VAT field to show on one store view ("codice fiscale" for Italy) but not have that field show with other store views. I have tried copying the core 'customer.xml' to somewhere local, amending it to show tax/vat at store level. T...
how to change copyright field website level to store level
I have multiple website and multiple store configuration where I need to set different copyright text for each store. I checked the system->configuration->general->design->footer Their is a copyright field but this scope is website level, so I can set one copyright text to one website not for each store. How Can I do this, Is their any ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.