Rebate is added as a product in the basket

Help for integrating the Laravel package
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!
kdim95
Advanced
Posts: 205
Joined: 26 Aug 2022, 12:17

Rebate is added as a product in the basket

Post by kdim95 » 05 Oct 2023, 15:16

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.
rebate-error.PNG
rebate-error.PNG (27.1 KiB) Viewed 11154 times
Payload:
b_prod[0][quantity]: 1
b_prod[0][position]: 0
b_coupon: test

What could be the problem?

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Rebate is added as a product in the basket

Post by aimeos » 06 Oct 2023, 07:26

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, Image give us a star

kdim95
Advanced
Posts: 205
Joined: 26 Aug 2022, 12:17

Re: Rebate is added as a product in the basket

Post by kdim95 » 06 Oct 2023, 08:26

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.

Post Reply