Vendor for the basket product

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!
Justus
Posts: 13
Joined: 02 Aug 2022, 19:19

Vendor for the basket product

Post by Justus » 07 Apr 2023, 10:28

I'm using JSONAPI and tried to set the vendor as described in the add products documentation , but it doesn't work
I'm using aimeos 2022.10
In 2021.x I have used supplier ID for supplier key and it works fine.

Now in the code I didn't find that the vendor from the request is used, the label from the site object is always set
https://github.com/aimeos/aimeos-core/b ... d.php#L769

Is there a way to set the vendor name without customizing the copyFrom method? It seemed to me that this should work the same as with the supplier in previous versions.

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

Re: Vendor for the basket product

Post by aimeos » 11 Apr 2023, 07:28

The basket parameters have been simplified a bit and the vendor parameter has been removed in favor of the siteid parameter. If you want to add the supplier name instead, you have to overwrite the copyFrom() method now.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Vendor for the basket product

Post by aimeos » 11 Apr 2023, 09:16

The documentation has been updated accordingly:
https://aimeos.org/docs/latest/frontend ... d-products
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Justus
Posts: 13
Joined: 02 Aug 2022, 19:19

Re: Vendor for the basket product

Post by Justus » 11 Apr 2023, 10:09

ok, thanks

Post Reply