News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Adding Order Status and making them look normal

Started by Niko, November 16, 2015, 12:01:55 PM

Previous topic - Next topic

Niko

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.

John2400


jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Niko

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.

GJC Web Design

Then just create that lang constant in the Joomla lang over rides and translate it
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Niko

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?

GJC Web Design

nothing to do with coding...  a std. Joomla function in the admin

http://bfy.tw/2oSu
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

lindapowers

#7
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

Niko

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.

lindapowers

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




Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/