Separate mails for shop owner and customer - no bcc
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!
Re: Separate mails for shop owner and customer - no bcc
The processBatch() method is called when you execute the order delivery job controller in the scheduler task, so you have to decorate that value in order to send the e-mail after the payment was successful.
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: Separate mails for shop owner and customer - no bcc
and another follow-up on this one:
Best
Robert.
As far as I see this is available since 2019.07, right? Then we will do the long awaited update first.aimeos wrote: ↑22 Mar 2020, 10:53 For using templates, you can have a look at the XML deliver service provider as reference:
https://github.com/aimeos/aimeos-core/b ... ry/Xml.php
Best
Robert.
Re: Separate mails for shop owner and customer - no bcc
Hi,
i also want to write a decorator that sends an Email to the Shop owner if a order was made (sending email if scheduler task for order/payment is executed), but i don't know where i have to place it and how it should set it up. Maybe you can help me showing your decorator. thanks.
i also want to write a decorator that sends an Email to the Shop owner if a order was made (sending email if scheduler task for order/payment is executed), but i don't know where i have to place it and how it should set it up. Maybe you can help me showing your decorator. thanks.
Re: Separate mails for shop owner and customer - no bcc
Hi,
I´m currently doing the 18 > 20 update and didn´t implement my own separate email yet. But this would be the location for the decorator class:
[your_aimeos_ext]/Resources/Private/Extensions/[your_aimeos_ext]/lib/custom/src/MShop/Service/Provider/Decorator/YourDecorator.php
Does that help?
I´m currently doing the 18 > 20 update and didn´t implement my own separate email yet. But this would be the location for the decorator class:
[your_aimeos_ext]/Resources/Private/Extensions/[your_aimeos_ext]/lib/custom/src/MShop/Service/Provider/Decorator/YourDecorator.php
Does that help?
Re: Separate mails for shop owner and customer - no bcc
hi,
thanks. And do i have to add for this decorator a plugin first or just add it to my Service (e.g. "PostPay")?
thanks. And do i have to add for this decorator a plugin first or just add it to my Service (e.g. "PostPay")?
Re: Separate mails for shop owner and customer - no bcc
No, there´s no separate Plugin necessary.
Re: Separate mails for shop owner and customer - no bcc
if i add my decorator like [your_aimeos_ext]/Resources/Private/Extensions/[your_aimeos_ext]/lib/custom/src/MShop/Service/Provider/Decorator/YourDecorator.php it is not available in the Services Providers Select (+). But if i add it to [your_aimeos_ext]/Resources/Private/Extensions/aimeos/ai-client-html/lib/custom/src/MShop/Service/Provider/Decorator/YourDecorator.php it is available in the selection of Providers
Re: Separate mails for shop owner and customer - no bcc
and when i use the second path and add the decorator in the checkout on the Website is shown: "Class "\Aimeos\MShop\Service\Provider\Decorator\Email" not available"
(YoutDecorator.php is named Email.php)
(YoutDecorator.php is named Email.php)
Re: Separate mails for shop owner and customer - no bcc
I didn´t set this up for my own yet but maybe the Decorator pattern can only be used on existing Providers. So you need to set it up in .../MShop/Service/Provider/Delivery
Still placing it in [your_aimeos_ext]/Resources/Private/Extensions/[your_aimeos_ext] should be possible though.
Full path: [your_aimeos_ext]/Resources/Private/Extensions/[your_aimeos_ext]/lib/custom/src/MShop/Service/Provider/Delivery/Email.php
And it has to be a Provider class:
Still placing it in [your_aimeos_ext]/Resources/Private/Extensions/[your_aimeos_ext] should be possible though.
Full path: [your_aimeos_ext]/Resources/Private/Extensions/[your_aimeos_ext]/lib/custom/src/MShop/Service/Provider/Delivery/Email.php
And it has to be a Provider class:
Code: Select all
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Metaways Infosystems GmbH, 2011
* @copyright Aimeos (aimeos.org), 2015-2018
* @package MShop
* @subpackage Service
*/
namespace Aimeos\MShop\Service\Provider\Delivery;
/**
* Manual delivery provider implementation.
*
* @package MShop
* @subpackage Service
*/
class Email
extends \Aimeos\MShop\Service\Provider\Delivery\Base
implements \Aimeos\MShop\Service\Provider\Delivery\Iface
{
}
Re: Separate mails for shop owner and customer - no bcc
Hi, thanks for your help!
I still got the error "Class "\Aimeos\MShop\Service\Provider\Decorator\Email" not available"
Maybe there is a problem in my extension. I set the extDirs for my extension to "EXT:myext_name/Resources/Private/Extensions/myext_name_shop/" because i use this ext for other overwrites too.
In this folder i have "ai-html-client" with my template overwrites (which works perfect) and now a folder/file "myextname/lib/custom/src/MShop/Service/Provider/Delivery/Email.php"
I still got the error "Class "\Aimeos\MShop\Service\Provider\Decorator\Email" not available"
Maybe there is a problem in my extension. I set the extDirs for my extension to "EXT:myext_name/Resources/Private/Extensions/myext_name_shop/" because i use this ext for other overwrites too.
In this folder i have "ai-html-client" with my template overwrites (which works perfect) and now a folder/file "myextname/lib/custom/src/MShop/Service/Provider/Delivery/Email.php"