Jump to content

Product Attribute as a separate product


Recommended Posts

Hi,

 

On my shop I am offering a product, I have added some attributes to this product that the customer can select as optional extras. These extra's are also able to be purchased separately on the store.

 

Is there anyway to make the stock of the separate product decrease when a customer purchases it as an attribute on a different product?

 

Example.

 

I sell PC and Hard Drives. A Hard Drive comes free with the PC, and is an attribute of the PC product. I only have 1 hard drive remaining, if somebody buys a PC and selects the hard drive attribute, I need the stock to be reduced of the hard drives, so I can no longer offer them for sale, is this possible?

 

I am using prestashop 1.5.2

 

Thanks in advance

 

Link to comment
Share on other sites

It would require some code modification, or a new module that will hoook to newOrder and reconcile the stock.

 

A simpler option would be to use product accessories rather than attributes, which will display the actual other products with a buy button on the main product page.

Link to comment
Share on other sites

×
×
  • Create New...