Author Topic: Email for each order status  (Read 825 times)

TAIWAR

  • Jr. Member
  • **
  • Posts: 240
Email for each order status
« on: January 20, 2021, 13:31:33 pm »
VM 3

Hello,It is possible to create for each order status a custom email ?
Example
sent : custom email ?
pick up : custom email ?

Thank you

Regards,

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 963
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Email for each order status
« Reply #1 on: January 20, 2021, 14:29:22 pm »
yes, with:
https://www.minijoomla.org/extensions/virtuemart-extensions/virtuemart-mailing-manager
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 565
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: Email for each order status
« Reply #2 on: January 20, 2021, 14:48:38 pm »
You can take the language variable for the statusname and use it to make a language string by adding something like _MSG to it.

Then you get something like:
COM_VIRTUEMART_ORDER_STATUS_PENDING_MSG
COM_VIRTUEMART_ORDER_STATUS_CONFIRMED_BY_SHOPPER_MSG
COM_VIRTUEMART_ORDER_STATUS_CONFIRMED_MSG

For this you can add Joomla language overrides.


The code can be added in mail_html_shopper.php:

Code: [Select]
if (!empty($this->orderDetails['details']['BT']->order_status_name)) {
$statusname = $this->orderDetails['details']['BT']->order_status_name;
}
$statusmessage = $statusname . '_MSG';


Just echo that in the same file after the part that says COM_VIRTUEMART_MAIL_SHOPPER_NAME.

<?php echo vmText::_($statusmessage); ?>

Hope it helps.
Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

TAIWAR

  • Jr. Member
  • **
  • Posts: 240
Re: Email for each order status
« Reply #3 on: January 20, 2021, 16:34:55 pm »
thank you
@pinochico I sent you private message
@StefanSTS If I had understand, If I want to use for each order statut

I have to create in the language.ini file the variant like_MSG "COM_VIRTUEMART_ORDER_STATUS_PENDING_MSG
COM_VIRTUEMART_ORDER_STATUS_CONFIRMED_BY_SHOPPER_MSG
COM_VIRTUEMART_ORDER_STATUS_CONFIRMED_MSG"

Sorry I can't find the folder for the file "mail_html_shopper.php" ?

In which file I shoud custom the emails ?
Thank you.

regards

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 565
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: Email for each order status
« Reply #4 on: January 20, 2021, 18:30:35 pm »
The file can be found here:
/components/com_virtuemart/views/invoice/tmpl/mail_html_shopper.php

It would be good to make an override in your template for it.
So copying that file to:
/templates/YOUR_TEMPLATE/html/com_virtuemart/invoice/mail_html_shopper.php

Here you can edit that file and it shoud be taken instead of the core file which would be updated to the latest core version on VM update.

Language Overrides in Joomla can be easily done via the Joomla language override feature.
Find it in the Joomla menu -> Extensions -> Languages -> Overrides. Add it for administrator and use the checkbox "both", so it works for Frontend and Backend. This is important.

STS
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 963
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Email for each order status
« Reply #5 on: January 20, 2021, 20:30:00 pm »
To TAIWAR:

I have not message :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 565
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: Email for each order status
« Reply #6 on: January 20, 2021, 21:05:22 pm »
By the way, because I sell my own email layouts, I also tested the email manager by VirtuePlanet.
I would recommend it for users that just want to have a component in the backend that does all the work in one place.
It got everything for VirtueMart and Joomla emails that someone would want to have.

I don't have a direct link, but you find VP Email Manager on virtueplanet.com in the extensions section.

STS
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 963
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Email for each order status
« Reply #7 on: January 20, 2021, 23:31:09 pm »
Btw.

Virtuemart Mailing Manager Pro is 100% better, I know, we use on 32 shops and created some new functions and we tryied VP.
But maybe you know as the old name VM Emails Manager Plus? :)

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 729
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always latest
Re: Email for each order status
« Reply #8 on: January 21, 2021, 09:01:37 am »
Btw.

Virtuemart Mailing Manager Pro is 100% better, I know, we use on 32 shops and created some new functions and we tryied VP.
But maybe you know as the old name VM Emails Manager Plus? :)

VP Email Manager (https://www.virtueplanet.com/extensions/vp-email-manager) was officially released only last night. Can you explain how did you test it? I understand Stefan's verdict since he was one of the beta testers of the extension.

By the way, I see that Virtuemart Mailing Manager Pro (forked version of old VM Emails Manager Plus) still needs a core VirtueMart hack which is never ideal for any sites.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 963
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Email for each order status
« Reply #9 on: January 21, 2021, 09:51:13 am »
BTW

VP Email Manager (https://www.virtueplanet.com/extensions/vp-email-manager) was officially released only last night.

Definitelly. I see this app before 1/2 year in extesion list, see documentation and know about this.  And yes, last night I check demo and check options.

Quote
still needs a core VirtueMart hack which is never ideal for any sites.

Sure, one file is changed after instalation automatically - shopfunction.php or you can edit manually. But now our 32 shop have a lot of new option and we need this oprtion for automatically sending email after order or change status order.
Sure, we changed a lot of core VM files for Pro shop, because in VM standard we don't use VM function as well (model product, user,....). And upgrade is very easy, we working with gitlab and brachnes.
Im happy, then I can use this app from 2012 still.

But definitelly your app is light alternative for templating emails, I'm sure, but without a lot of functions and option in this time.
I'm sure you will to upgrade, the same as we created upgrade and added new function (folow-up, waiting list, tracking URL of shipping order, repeteable payment URL in email...) what we need for pro shop.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 729
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always latest
Re: Email for each order status
« Reply #10 on: January 21, 2021, 10:13:53 am »
Definitelly. I see this app before 1/2 year in extesion list, see documentation and know about this.  And yes, last night I check demo and check options.

Do not know how you could see the extension in extension list when I developed and released it just yesterday. Which extension list do you mean? We would love to know.

The demo site was not up till the morning. It was put live just few hours ago.


Sure, one file is changed after instalation automatically - shopfunction.php or you can edit manually.

Being as a Joomla and VirtueMart developer for over a decade I will never recommend any such hacks to anyone. I know quite a few users of VM Emails Manager Plus faced huge problems after each VirtueMart updates. Hacks are never a wise decision, no matter how it is deployed.

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 565
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: Email for each order status
« Reply #11 on: January 21, 2021, 10:32:07 am »
Virtuemart Mailing Manager Pro is 100% better, ... we tryied VP.

I was simply giving an alternative to the minijoomla mail extension.
I did not offer my opinion which one is better.

I can offer my thoughts on VirtuePlanet extensions:
With VirtuePlanet extensions and templates I always know they are coded by someone who does the work from scratch.
The extensions are very reliable and follow the Joomla and VirtueMart coding style.
If any issues or requests arise I always get a competent answer, solution or even a new feature.
So I am a happy customer for years.

Since VirtuePlanet has a relatively small number of extensions, but well sorted, I know that they have the time to maintain them properly.

And to be said. VirtuePlanet can be seen as a direct competitor to my own commercial email layouts, if it comes to the email manager. Still I am happy to say their email manager is a very good solution for most cases.

Regarding the minijoomla mail extension I can definitely say that I would never install an extension that alters a VirtueMart core file.
That kind of practice was breaking shops for years.

Just my 2 cent
Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

sirius

  • Jr. Member
  • **
  • Posts: 93
    • OCTeam
  • VirtueMart Version: 3.8.6
Re: Email for each order status
« Reply #12 on: January 21, 2021, 16:50:53 pm »
BTW

VP Email Manager (https://www.virtueplanet.com/extensions/vp-email-manager) was officially released only last night.

Definitelly. I see this app before 1/2 year in extesion list, see documentation and know about this.  And yes, last night I check demo and check options.

Quote
still needs a core VirtueMart hack which is never ideal for any sites.


Perhaps pinochico confuses about the old:
Interamind VM Email Manager Pro ?
J3.9.24 | PHP7.4.15 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 3.8.9

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 729
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always latest
Re: Email for each order status
« Reply #13 on: January 21, 2021, 18:23:51 pm »
BTW

VP Email Manager (https://www.virtueplanet.com/extensions/vp-email-manager) was officially released only last night.

Definitelly. I see this app before 1/2 year in extesion list, see documentation and know about this.  And yes, last night I check demo and check options.

Quote
still needs a core VirtueMart hack which is never ideal for any sites.


Perhaps pinochico confuses about the old:
Interamind VM Email Manager Pro ?

No, it can not be because his "Virtuemart Mailing Manager Pro" is just a forked version of the old "Interamind Email Manager Plus". The same old extension with a different name.

TAIWAR

  • Jr. Member
  • **
  • Posts: 240
Re: Email for each order status
« Reply #14 on: January 21, 2021, 21:24:43 pm »
Hello thank you everybody for your comment.
I haven’t test yet from minijoomla extension for the email but For the extension in virtuemartplanet it seems not easy for users like me that have not enough experience in the php or css code...it is possible to have an edit form that we can write the text in the email and add the variable to use from virtuemart?
Thank you