Jump to content

Edit History

derekjwhitten

derekjwhitten

Thanks, this looks like an interesting module!

In the ended up using a workaround where my module:

  • Is connected to hookActionCartSave
  • Checks what product was just added (using the data in $_POST)
  • If it's the correct product (a bed), it manually adds the free product (a cushion) using $params['cart']->updateQty
  • Then I create a customisation and set the price impact to the negative value of the cushion so that it's free

I'm installing conseq though because it looks like it could be useful for any number of things - thanks for sharing! 

EDIT: After installing I've realised this has a licence requirement after a 14 day trial so might give it a miss for now.

derekjwhitten

derekjwhitten

Thanks, this looks like an interesting module!

In the ended up using a workaround where my module:

  • Is connected to hookActionCartSave
  • Checks what product was just added (using the data in $_POST)
  • If it's the correct product (a bed), it manually adds the free product (a cushion) using $params['cart']->updateQty
  • Then I create a customisation and set the price impact to the negative value of the cushion so that it's free

 

I'm installing conseq though because it looks like it could be useful for any number of things - thanks for sharing!

×
×
  • Create New...