Apply Coupon without Code

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
stagedive_media
Posts: 2
Joined: 14 Apr 2021, 10:36

Apply Coupon without Code

Post by stagedive_media » 30 May 2021, 07:43

Hi!

I'm rather new to Aimeos and I'm having troubles with the following:

I'm having only one product in a customers shop. This product has multiple sizes and colors. The customer should get a discount when ordering a certain amount of the product not matter which size or color.

So I tried to solve this via the prices in the product settings, but that does not seem to work because it only work on variant level.

So I tried to solve it with a percentRebate and the basketvalues.total-value-min and -max decorator. This would work perfectly, but I'm only get it to work with a Coupon-Code, which I don't want. So here's the core question:

Can I apply the coupon whitout a code, automatically when a certain amount is reached?

Thank you for your help!

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

Re: Apply Coupon without Code

Post by aimeos » 03 Jun 2021, 09:01

Maybe you can implement a new catalog rule provider or decorator which adapts the price according to your needs:
https://github.com/aimeos/aimeos-core/t ... er/Catalog

This works in 2021.04+
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply