Coupon available for all products
Posted: 12 Jan 2018, 09:00
Hello again,
I am having trouble implementing a global discount coupon. I have read some similar posts, but the solution wasn't clear. I have tried creating a custom coupon provider, but as i can see it, all the existing coupon providers work in a way, that they add an existing product with a modified price to the basket.
If i have a basket with multiple product types and multiple quantities, how should i add a discount? I have tried to create a new product "$this->createProduct(...)" , but it seems that i need the code of an existing product; I get this message: "No product with code "" found".
Could you give some detailed description? I know it's not a hard thing to do, but I'm stuck.
Thank you.
typo3 8.7.7
php 7.0.16
Linux 2.6
I am having trouble implementing a global discount coupon. I have read some similar posts, but the solution wasn't clear. I have tried creating a custom coupon provider, but as i can see it, all the existing coupon providers work in a way, that they add an existing product with a modified price to the basket.
If i have a basket with multiple product types and multiple quantities, how should i add a discount? I have tried to create a new product "$this->createProduct(...)" , but it seems that i need the code of an existing product; I get this message: "No product with code "" found".
Could you give some detailed description? I know it's not a hard thing to do, but I'm stuck.
Thank you.
typo3 8.7.7
php 7.0.16
Linux 2.6