How to create a selection product with different price vouchers?

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!
nowrap
Posts: 37
Joined: 01 Mar 2023, 23:03

How to create a selection product with different price vouchers?

Post by nowrap » 31 May 2023, 22:00

Hello,

we want to create a selection product in order to choose different prices for a voucher.
But we are failing.

We created a voucher with different prices and added this one as a variant to the selection product and the prices as variant attributes:

Image

Without a price in the selection product no submit button is shown.
Setting a price and selecting a variant does create spooky basket items.

Regards
nowrap

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

Re: How to create a selection product with different price vouchers?

Post by aimeos » 02 Jun 2023, 08:55

The price for the selection product is required, not only for the "add to basket" button and you should assign the smallest price of all variant articles (25€ in your case).

What are those "spooky" basket items?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

nowrap
Posts: 37
Joined: 01 Mar 2023, 23:03

Re: How to create a selection product with different price vouchers?

Post by nowrap » 05 Jun 2023, 20:02

Thank you for your answer!

@spooky basket items:

We added 25 EUR as the default price. So the Submit-Button is back.

If clicked with any value selected, the product text includes all variants and the price is the sum of the default price plus all variants:

Test Voucher Selection
price 25 Euro Wertgutschein
price 100 Euro Wertgutschein
price 150 Euro Wertgutschein
price 250 Euro Wertgutschein
550,00 €

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

Re: How to create a selection product with different price vouchers?

Post by aimeos » 06 Jun 2023, 11:50

Guess, you've defined no variant attributes for the articles in the selection product. Thus, the frontend doesn't know which voucher variant should be added to the basket. Maybe a group product is the better option in that case.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

nowrap
Posts: 37
Joined: 01 Mar 2023, 23:03

Re: How to create a selection product with different price vouchers?

Post by nowrap » 06 Jun 2023, 19:19

Thx alot,

i guess, it was a configuration misunderstanding.

We created one selection product and added one variant article with 4 variant attributes (price).

The right working way it seems, is to add one variant article with one variant attribute (price) for each selectable item.

Post Reply