Add custom "Option" to Coupon - how to retrieve in checkout?
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Add custom "Option" to Coupon - how to retrieve in checkout?
Hello,
for a customer we have setup the shop to buy online courses, now he wants to define bonus courses that one will get if he uses a certain coupon. I figured I'd just add an option like "addCourse" to the coupon and store the id of the course, but how do i retrieve that option in the checkout process to display to the customer that he will get that course on top??
Regards
for a customer we have setup the shop to buy online courses, now he wants to define bonus courses that one will get if he uses a certain coupon. I figured I'd just add an option like "addCourse" to the coupon and store the id of the course, but how do i retrieve that option in the checkout process to display to the customer that he will get that course on top??
Regards
Re: Add custom "Option" to Coupon - how to retrieve in checkout?
The simplest way is to use the "Present" coupon provider and define the additional product as free of charge product:
https://aimeos.org/docs/User_Manual/Adm ... st#Present
https://aimeos.org/docs/User_Manual/Adm ... st#Present
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Add custom "Option" to Coupon - how to retrieve in checkout?
Usually a good way, however, the course is not purchasable or a product at all, its one course just made for a specific range of customer.
Re: Add custom "Option" to Coupon - how to retrieve in checkout?
It's OK that it is not purchaseable but if you sell courses, the bonus course should be a hidden product too. This way, customers can enter the code and the course will be shown in the basket without charge (set price to 0.00).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Add custom "Option" to Coupon - how to retrieve in checkout?
Can I make the present dependend on the coupon that is added? Cause it'll have various courses in the near future that will be gifted that way, hence i considered and still consider the Coupon Option the easiest and most flexible solution...
Re: Add custom "Option" to Coupon - how to retrieve in checkout?
Sure. Create one coupon entry for each course and associate the appropriate coupon code to each entry
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Add custom "Option" to Coupon - how to retrieve in checkout?
Still, there gotta be a way to access the coupon options... Instead of having to add each and every course, a coupon and what not, i would still prefer to simply add an option to a coupon that holds the courses associated.
Whats the way to achieve that?
Whats the way to achieve that?
Re: Add custom "Option" to Coupon - how to retrieve in checkout?
You can extend the coupon or coupon code table, item and manager to store that additional information and extend the admin interface to manage it but this is going to be some work.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Add custom "Option" to Coupon - how to retrieve in checkout?
Why cant I just hijack the Options and add my own? Thats there and should be used somewhere, I just need to know which method loads the options so i can load it and access it.
Re: Add custom "Option" to Coupon - how to retrieve in checkout?
You can but you have to care yourself how your customers get access to that courses.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star