Aimeos not generating Voucher Codes
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!
Aimeos not generating Voucher Codes
Hi There
I'm trying to get the voucher product to work, but it never generates a voucher code after purchase.
I've read the following Docs:
https://aimeos.org/docs/2021.x/manual/p ... /#vouchers
https://aimeos.org/docs/2021.x/manual/coupons/#voucher
I've set up the Voucher Provider within the marketing discout area in the backend. And the product is also of type voucher.
To test it, I've installed a brand new installation with the Aimeos Distribution Packages and there it also does not generate a Voucher Code after you purchase the demo voucher product.
I assume that after a customer purchases a voucher product, that the code will be sent to the customer with the order confirmation and in the backend I'm able to see the generated code in the Voucher Discout that has been set up.
The regular order confirmation E-Mail is being sent correctly and I've also set up the Scheduler Job "Voucher Related E-Mails" to run every minute.
Is there somehow a bug or am I just missing something?
Thanks for the help!
My Environment:
TYPO3 10.4.20
Aimeos 21.7.1
PHP 7.4
Currently running in an DDEV Container
I'm trying to get the voucher product to work, but it never generates a voucher code after purchase.
I've read the following Docs:
https://aimeos.org/docs/2021.x/manual/p ... /#vouchers
https://aimeos.org/docs/2021.x/manual/coupons/#voucher
I've set up the Voucher Provider within the marketing discout area in the backend. And the product is also of type voucher.
To test it, I've installed a brand new installation with the Aimeos Distribution Packages and there it also does not generate a Voucher Code after you purchase the demo voucher product.
I assume that after a customer purchases a voucher product, that the code will be sent to the customer with the order confirmation and in the backend I'm able to see the generated code in the Voucher Discout that has been set up.
The regular order confirmation E-Mail is being sent correctly and I've also set up the Scheduler Job "Voucher Related E-Mails" to run every minute.
Is there somehow a bug or am I just missing something?
Thanks for the help!
My Environment:
TYPO3 10.4.20
Aimeos 21.7.1
PHP 7.4
Currently running in an DDEV Container
Re: Aimeos not generating Voucher Codes
Seems to be correct what you describe. The "Voucher Related E-Mails" job controller executed by the scheduler generates the vouchers and send them to the customers:
https://github.com/aimeos/ai-client-htm ... andard.php
Maybe there's a minor thing wrong in your setup you've overseen.
https://github.com/aimeos/ai-client-htm ... andard.php
Maybe there's a minor thing wrong in your setup you've overseen.
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: Aimeos not generating Voucher Codes
Thanks for point me to the right code.
The Problem was, that an order with the payment invoice has the status "authorzied". And per default the Voucher E-Mail Job looks for orders with the status "received".
In the typoscript in the Scheduler Job I could overwrite the config like so:
Now it checks for order with the status "authorized" and "received".
I was not able to overwrite the config via setup.typoscript file, which would be nice so I can add it to my custom EXT.
In the Setup I've used the backend prefix for the config. (I've also testet the frontend prefix ).
Is it even possible to overwrite a config for a Job via typoscript file? Or does it need to be set in the job it self?
The Problem was, that an order with the payment invoice has the status "authorzied". And per default the Voucher E-Mail Job looks for orders with the status "received".
In the typoscript in the Scheduler Job I could overwrite the config like so:
Code: Select all
controller{
jobs{
order{
email{
voucher{
status {
0 = 5
1 = 6
}
}
}
}
}
}
I was not able to overwrite the config via setup.typoscript file, which would be nice so I can add it to my custom EXT.
In the Setup I've used the backend prefix
Code: Select all
module.tx_aimeos.settings.
Code: Select all
plugin.tx_aimeos.settings.
Is it even possible to overwrite a config for a Job via typoscript file? Or does it need to be set in the job it self?
Re: Aimeos not generating Voucher Codes
You should be able to use the @import statement in the TSConfig field of the scheduler task:
https://docs.typo3.org/m/typo3/referenc ... ludes.html
The settings you add to the TSConfig field can be either prefixed by "plugin.tx_aimeos.settings" or without prefix.
https://docs.typo3.org/m/typo3/referenc ... ludes.html
The settings you add to the TSConfig field can be either prefixed by "plugin.tx_aimeos.settings" or without prefix.
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