Rebate is added as a product in the basket
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Rebate is added as a product in the basket
Laravel framework version: 10.16.1
Aimeos Laravel version: 2023.04.*
PHP Version: 8.2.8
Environment: Linux
Hello,
My rebate is getting added as a product when adding it in the basket.
It gets added to the "products" array of the order item.
$this->standardBasket->getProducts() retrieves both the rebate item and the products.
Payload:
b_prod[0][quantity]: 1
b_prod[0][position]: 0
b_coupon: test
What could be the problem?
Aimeos Laravel version: 2023.04.*
PHP Version: 8.2.8
Environment: Linux
Hello,
My rebate is getting added as a product when adding it in the basket.
It gets added to the "products" array of the order item.
$this->standardBasket->getProducts() retrieves both the rebate item and the products.
Payload:
b_prod[0][quantity]: 1
b_prod[0][position]: 0
b_coupon: test
What could be the problem?
Re: Rebate is added as a product in the basket
That's intentional as many ERP and most fulfillment systems can't handle rebates as part of products.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Rebate is added as a product in the basket
I have a clean installation on local. I added a rebate to it the same way.
I printed it in the standard basket with dump( $this->standardBasket ).
When there is a rebate added to the order, the rebate is not added to the basket as a product in the local installation.
The local installation has aimeos laravel version ~2023.07.
I printed it in the standard basket with dump( $this->standardBasket ).
When there is a rebate added to the order, the rebate is not added to the basket as a product in the local installation.
The local installation has aimeos laravel version ~2023.07.