Serial for 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!
chiodimassimiliano
Posts: 2
Joined: 30 Jan 2024, 15:16

Serial for product

Post by chiodimassimiliano » 02 Feb 2024, 11:29

Good morning,
I would like to try to create a table for the products that I would like to call serial_number: inside there will be the serial numbers for a hypothetical 'software' type product;
the serial numbers will contain the licenses; and will be visible on the invoice only after payment has been made (.


a license code for each single quantity of each product in the cart:
Product 1 - Software Test, Qty 2
- Serial 2384923849020384
- Serial 2384923849020385

Product 2 - Software Test 2, Qty 1
- Serial 2384923849020384

How can I do ? I understand nothing about Aimeos and little about Laravel

chiodimassimiliano
Posts: 2
Joined: 30 Jan 2024, 15:16

Re: Serial for product

Post by chiodimassimiliano » 02 Feb 2024, 13:54

maybe someone who could try to help me...

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

Re: Serial for product

Post by aimeos » 05 Feb 2024, 11:13

That's a bit advanced if you don't have experience with Laravel and Aimeos.

How to create a new table and an Aimeos manager for it is described here:
https://aimeos.org/docs/latest/models/create-managers/

The problem is now that you need to add the license code to the products in the basket. This can be done by a basket plugin that registers for the "addProduct.after" event, looks up the next license code if the product in the basket doesn't already have one and add the license code as attribute to the product in the basket:
https://aimeos.org/docs/latest/provider ... t-plugins/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply