Add a base price

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
timothy_truckle
Posts: 10
Joined: 12 Mar 2018, 14:00

Add a base price

Post by timothy_truckle » 13 Oct 2021, 16:01

Laravel: Laravel Framework 6.20.27
Aimeos: aimeos/aimeos-core 2020.10.25
PHP: PHP 7.4.3
OS: 20.04.1-Ubuntu

I need to create a product that will consist of a service (printing) having a fixed price of say 20 Euros. This should be coupled with another product card (0.50€ each) , that will be printed with a selectable text. I figured this can be achieved with product variants. And this works.

Problem is: The Service should be a one-time payment for that order, and the price should reflect that like so:

Product Card with Printing, constists of:

Order 1 x Card + 1 x Printing

Printing Service == 1 x 20 = 20€
Cards == 1 x 0,50 = 0,50€
Sums up to 20.50 €

How can i achieve this:

The Order consists of 30 x Card + 1 x Printing

Printing Service == 1 x 20,00 = 20€
Cards == 30 x 0,50 = 15€
Sums up to 35,00 €

in one Product (with text variants) ? I want the printing service to be counted just once, not 30 times if the customer wants 30 cards. Any ideas?

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

Re: Add a base price

Post by aimeos » 15 Oct 2021, 08:38

Add the base price as price for the product and use configurable attributes with their own prices for the cards because they can have their own quantities.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

timothy_truckle
Posts: 10
Joined: 12 Mar 2018, 14:00

Re: Add a base price

Post by timothy_truckle » 20 Oct 2021, 09:26

Thank you for your answer, however i cannot see how to give the attribute its own quantity input on the product page.

Does this work with aimeos 2020.10?

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

Re: Add a base price

Post by aimeos » 21 Oct 2021, 08:53

Yes, it works for 2020.10 LTS too but only for configurable attributes like shown here:
https://laravel.demo.aimeos.org/default ... -article/2
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply