VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Niko on November 16, 2015, 12:01:55 PM

Title: Adding Order Status and making them look normal
Post by: Niko on November 16, 2015, 12:01:55 PM
Hello

I have two running stores, and one thing that I am failing in is keeping my shoppers up to date with regards to the order statuses.

I have added order statuses but they do not display nicely and I think this has to do with the language file. They show like this - COM_VIRTUEMART_ORDER_STATUS_"STATUSNAME" instead of just "STATUSNAME"

I know how to add extra statuses but I do not know how to change the way they show.

Thank you in advanced.
Title: Re: Adding Order Status and making them look normal
Post by: John2400 on November 16, 2015, 12:04:47 PM
http://forum.virtuemart.net/index.php?topic=113895.0

Might help
Title: Re: Adding Order Status and making them look normal
Post by: jenkinhill on November 16, 2015, 12:07:18 PM
Create language overrides for the constants?  http://forum.virtuemart.net/index.php?topic=113895.0
Title: Re: Adding Order Status and making them look normal
Post by: Niko on November 16, 2015, 12:38:51 PM
Thank you for the replies.

Maybe I should be more clear. I created a new order status but the shopper receives the update with this in the subject line:
QuoteCOM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z

I need to edit that to what the pre-configured order statuses display.

Hope that makes sense.
Title: Re: Adding Order Status and making them look normal
Post by: GJC Web Design on November 16, 2015, 13:16:41 PM
Then just create that lang constant in the Joomla lang over rides and translate it
Title: Re: Adding Order Status and making them look normal
Post by: Niko on November 16, 2015, 14:44:15 PM
Quote from: GJC Web Design on November 16, 2015, 13:16:41 PM
Then just create that lang constant in the Joomla lang over rides and translate it

That has gone completely over my head, and I do not understand. I understand that there must be editing, but please forgive me, I am not a coder or anything like that unfortunately. Guidance?
Title: Re: Adding Order Status and making them look normal
Post by: GJC Web Design on November 16, 2015, 14:53:22 PM
nothing to do with coding...  a std. Joomla function in the admin

http://bfy.tw/2oSu
Title: Re: Adding Order Status and making them look normal
Post by: lindapowers on November 16, 2015, 21:17:35 PM
You can do it different ways.

In your FTP: /administrator/language/overrides/

en-GB.override.ini (english)
es-ES.override.ini (spanish)
fr-FR.override.ini (french)
etc

and folder /language/overrides

Download and open those INI files with notepad or notepad++

Add the order status name you created and the lines for the e-mail subjects.


COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z="[%3$s], Confirmed order at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_Z="[%3$s], Confirmed order by %1$s, total %2$s"
COM_VIRTUEMART_ORDER_STATUS_ACCEPTED="Accepted"
COM_VIRTUEMART_ORDER_STATUS_POSTPONED="International o postponed"

In my example you see 2 mail subjetcs one for vendor one for customers and 2 order status I created.
So add your lines both in the admin folder and the frontend folder of overrides.

----------------------------------------

You can do it directly also from joomla backend Extensions/languages/overrides/add new and you add them in both frontend and backend.

Regards
Title: Re: Adding Order Status and making them look normal
Post by: Niko on November 19, 2015, 14:00:47 PM
Hello

I have added the lines on the language override, and it seems to be correct, but i sent an order update and the subject line still showed, "COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z"

This is getting a bit frustrating as it really shouldnt be this difficult to add order statuses that show what they are meant to. It is just the order status email that I need to change, but it seems I have to change the way VM displays it in order for the email subject to read correctly.

Take a look at this screenshot. How come when we create an order status, it shows like this. There is data missing here i think - See attachement

I know I am being a pain, and I am probably being stupid, and sorry for taking up your time, but I am close to paying someone to do this I am that desperate.
Title: Re: Adding Order Status and making them look normal
Post by: lindapowers on November 19, 2015, 15:24:27 PM
Quote from: Niko on November 19, 2015, 14:00:47 PM
Hello

I have added the lines on the language override, and it seems to be correct, but i sent an order update and the subject line still showed, "COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z"

This is getting a bit frustrating as it really shouldnt be this difficult to add order statuses that show what they are meant to. It is just the order status email that I need to change, but it seems I have to change the way VM displays it in order for the email subject to read correctly.

Take a look at this screenshot. How come when we create an order status, it shows like this. There is data missing here i think - See attachement

I know I am being a pain, and I am probably being stupid, and sorry for taking up your time, but I am close to paying someone to do this I am that desperate.

The problem is that you are using "shipped by supplier" as title.

Change the title of that order status to:

COM_VIRTUEMART_ORDER_STATUS_SHIPPED_BY_SUPPLIER

In your language files overrides as I showed you in previous post, add the line:

COM_VIRTUEMART_ORDER_STATUS_SHIPPED_BY_SUPPLIER= "Shipped by supplier"


For the email line remember there are 2 lines, one for vendor one for customers:

COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z="[%3$s], Shipped by supplier order at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_Z="[%3$s], Shipped by supplier order by %1$s, total %2$s"

You have 2 files for overrides for each language, one for admin one for frontend, add it in both as I showed you in:

/administrator/language/overrides/
/language/overrides



Title: Re: Adding Order Status and making them look normal
Post by: Milbo on November 20, 2015, 00:34:17 AM
Right, I was not able to find a workaround to load always the FE override file, so it must be done in both files for emails and invoices.