[Skip to main content](#vessel-content)

#   Collect on delivery payment plugin

##

- **[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")**
- [![serbofleconcepts's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37141.gif)](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile") Topic Author
- [ Offline](/forum/user/37141-serbofleconcepts)

Less More

- Posts: 158
- Thank you received: 5
-
-

11 years 6 months ago [\#200992](#200992) by [serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")  *[Collect on delivery payment plugin](/forum/29-payment-methods/876834-collect-on-delivery-payment-plugin#200992 "-- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1  I've been trying different configurations here to prevent the order email being sent to the customer after each order. I'd prefer it if it was sent when the order is confirmed or shipped.  Is this possible? I read the help documentation ..   www.hikashop.com/support/support/documen...ondelivery-form.html  but it's not 100% clear what the options below actually do.")* was created by *[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")*

-- HikaShop version -- : HikaShop Business: 2.4.0
-- Joomla version -- : 3.4.1

I've been trying different configurations here to prevent the order email being sent to the customer after each order. I'd prefer it if it was sent when the order is confirmed or shipped.

Is this possible? I read the help documentation .. [ www.hikashop.com/support/support/documen...ondelivery-form.html](http://www.hikashop.com/support/support/documentation/35-hikashop-payment-collectondelivery-form.html) but it's not 100% clear what the options below actually do.

[ ![payment&#95;on&#95;delivery.jpg](/forum/attachment/24267) ](/forum/attachment/24267 "...n&#95;delivery.jpg")

- [ ![payment&#95;on&#95;delivery.jpg](/forum/attachment/24267) ](/forum/attachment/24267 "...n&#95;delivery.jpg") [ ](/forum/attachment/24267?download=1 "...n&#95;delivery.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY4MzQtY29sbGVjdC1vbi1kZWxpdmVyeS1wYXltZW50LXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 6 months ago [\#200998](#200998) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Collect on delivery payment plugin](/forum/29-payment-methods/876834-collect-on-delivery-payment-plugin#200998 "-- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1  I've been trying different configurations here to prevent the order email being sent to the customer after each order. I'd prefer it if it was sent when the order is confirmed or shipped.  Is this possible? I read the help documentation ..   www.hikashop.com/support/support/documen...ondelivery-form.html  but it's not 100% clear what the options below actually do.")*

Hi,

HikaShop send an email when the order is created ; you also have to unpublish that email.
The "order status notification" option in the payment plugin is to send (or not) an extra email when the order status is set to what you selected for the option "order status".
In case where you set the setting to "pending" (for example), you can decide to send an email to the customer for that "pending" status. But because you are using "created" ; the setting "order status notification" have any impact.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY4MzQtY29sbGVjdC1vbi1kZWxpdmVyeS1wYXltZW50LXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")**
- [![serbofleconcepts's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37141.gif)](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile") Topic Author
- [ Offline](/forum/user/37141-serbofleconcepts)

Less More

- Posts: 158
- Thank you received: 5
-
-

11 years 6 months ago [\#201149](#201149) by [serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")  Replied by *[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")* on topic *[Collect on delivery payment plugin](/forum/29-payment-methods/876834-collect-on-delivery-payment-plugin#201149 "-- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1  I've been trying different configurations here to prevent the order email being sent to the customer after each order. I'd prefer it if it was sent when the order is confirmed or shipped.  Is this possible? I read the help documentation ..   www.hikashop.com/support/support/documen...ondelivery-form.html  but it's not 100% clear what the options below actually do.")*

Ah, ok, I understand how it works now. Is it possible to unpublish the 'order created' email for just this payment type please?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY4MzQtY29sbGVjdC1vbi1kZWxpdmVyeS1wYXltZW50LXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 6 months ago [\#201158](#201158) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Collect on delivery payment plugin](/forum/29-payment-methods/876834-collect-on-delivery-payment-plugin#201158 "-- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1  I've been trying different configurations here to prevent the order email being sent to the customer after each order. I'd prefer it if it was sent when the order is confirmed or shipped.  Is this possible? I read the help documentation ..   www.hikashop.com/support/support/documen...ondelivery-form.html  but it's not 100% clear what the options below actually do.")*

Hi,

To do so, you have to create an override of the email and add a condition to not send the email when the order payment method is "collect on delivery".
The email is to modify the email object in the preload: Code:

if($data-&gt;order_payment_method == 'collectondelivery') $mail-&gt;published = false;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY4MzQtY29sbGVjdC1vbi1kZWxpdmVyeS1wYXltZW50LXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")**
- [![serbofleconcepts's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37141.gif)](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile") Topic Author
- [ Offline](/forum/user/37141-serbofleconcepts)

Less More

- Posts: 158
- Thank you received: 5
-
-

11 years 6 months ago [\#201216](#201216) by [serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")  Replied by *[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")* on topic *[Collect on delivery payment plugin](/forum/29-payment-methods/876834-collect-on-delivery-payment-plugin#201216 "-- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1  I've been trying different configurations here to prevent the order email being sent to the customer after each order. I'd prefer it if it was sent when the order is confirmed or shipped.  Is this possible? I read the help documentation ..   www.hikashop.com/support/support/documen...ondelivery-form.html  but it's not 100% clear what the options below actually do.")*

Thanks, where do I add this data? Where is the preload section located?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY4MzQtY29sbGVjdC1vbi1kZWxpdmVyeS1wYXltZW50LXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

11 years 6 months ago [\#201218](#201218) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Collect on delivery payment plugin](/forum/29-payment-methods/876834-collect-on-delivery-payment-plugin#201218 "-- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1  I've been trying different configurations here to prevent the order email being sent to the customer after each order. I'd prefer it if it was sent when the order is confirmed or shipped.  Is this possible? I read the help documentation ..   www.hikashop.com/support/support/documen...ondelivery-form.html  but it's not 100% clear what the options below actually do.")*

Hi,

When you edit an email via the menu System&gt;Emails, you can scroll at the bottom of the page and you'll find the "preload" section where you can add that code.

The following user(s) said Thank You: [serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY4MzQtY29sbGVjdC1vbi1kZWxpdmVyeS1wYXltZW50LXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")**
- [![serbofleconcepts's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37141.gif)](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile") Topic Author
- [ Offline](/forum/user/37141-serbofleconcepts)

Less More

- Posts: 158
- Thank you received: 5
-
-

11 years 6 months ago [\#201264](#201264) by [serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")  Replied by *[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")* on topic *[Collect on delivery payment plugin](/forum/29-payment-methods/876834-collect-on-delivery-payment-plugin#201264 "-- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1  I've been trying different configurations here to prevent the order email being sent to the customer after each order. I'd prefer it if it was sent when the order is confirmed or shipped.  Is this possible? I read the help documentation ..   www.hikashop.com/support/support/documen...ondelivery-form.html  but it's not 100% clear what the options below actually do.")*

Thanks, this is now working as I want it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY4MzQtY29sbGVjdC1vbi1kZWxpdmVyeS1wYXltZW50LXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.076 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
