VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: MAD King on January 15, 2015, 21:58:56 PM

Title: [cleared] Order Statuses showing Constants
Post by: MAD King on January 15, 2015, 21:58:56 PM
After updating to VM 3.0.3 it shows constants in the order statuses. Language file is fine.


[attachment cleanup by admin]
Title: Re: Order Statuses showing Constants
Post by: bluezeyes on January 19, 2015, 21:53:28 PM
Have you checked,  that the overwrite constants are existing in the backend language too?

Because your first screenshot shows the backend,  not the site ( means frontend)

Kind regards
Title: Re: Order Statuses showing Constants
Post by: MAD King on January 19, 2015, 22:35:08 PM
Check the second image
Title: Re: Order Statuses showing Constants
Post by: bluezeyes on January 19, 2015, 22:49:44 PM
Yes I see it,  that's why I ask you if you have checked the second entry in language selection "administrator" which holds the overwrites for the backend and see if the constant is there too and filled.

Location: site  means only frontend
Not the backend,  which is

Location: Administrator
Title: Re: Order Statuses showing Constants
Post by: MAD King on January 19, 2015, 23:06:01 PM
Oh. I did not realize that. In Admin, all the constants are missing, so. means something messed up. Constants should be in Admin and not in Site. Do you have the same issue?
Title: Re: Order Statuses showing Constants
Post by: bluezeyes on January 19, 2015, 23:08:10 PM
I can't check it at moment.
I m respond you from mobile..  Will check later..
Title: Re: Order Statuses showing Constants
Post by: bluezeyes on January 19, 2015, 23:17:38 PM
On a first check,  order constants for en -GB are all there in BE

Ot: the Be for VM is a mess from mobile..  Hope someone will write a working bootstrap theme for it...  Well but it works..  [emoji6]
Title: Re: Order Statuses showing Constants
Post by: MAD King on January 19, 2015, 23:20:50 PM
Weird. Why did it get messed up on mine after updating?
Title: Re: Order Statuses showing Constants
Post by: bluezeyes on January 20, 2015, 00:11:04 AM
Well Ive checked it at home now too, and I have the same view like you in your 1st screenshot,

but when I check in  Configuration -> Checkout they are still there and have the values.

And you can't find the constants in the language manager under Overwrites if you don't have created them before,
You have to search in the Language manager themself, either for the constant or for the containing value (which is default setting)

So it seems, that the constants in brackets is just a help for you, maybe to design the invoices or mail content.. i dunno :)

Kind regards,

bluezeyes
Title: Re: Order Statuses showing Constants
Post by: MAD King on January 20, 2015, 21:47:13 PM
I tried to find it in the language file direct, but was not able to.
Title: Re: Order Statuses showing Constants
Post by: bluezeyes on January 21, 2015, 22:58:57 PM
Quote from: MAD King on January 20, 2015, 21:47:13 PM
I tried to find it in the language file direct, but was not able to.
But why you want to search it for, It looks ok on your side?
Otherwise you wont have the word Pending in front of the round brackets..

Look in the Orders.ini

components/com_virtuemart/language/en-GB/en-GB.com_virtuemart_orders.ini
Line 72:COM_VIRTUEMART_ORDER_STATUS_PENDING="Pending" for example

Regards,

bluezeyes
Title: Re: Order Statuses showing Constants
Post by: MAD King on January 22, 2015, 16:27:04 PM
I have them in the language file, but this still does not explain how the constants get into the backend statuses and why they are showing there.
Title: Re: Order Statuses showing Constants
Post by: bluezeyes on January 22, 2015, 19:45:33 PM
Have you opened edited one of the existing order status?
Maybe the constant is used as title/ name?
And the rest is the wonder of joomla s Translator system [emoji106]

Just look inside [emoji6]
Title: Re: Order Statuses showing Constants
Post by: MAD King on January 22, 2015, 20:38:34 PM
Yes, did. Something is definitely messed up after updating.
Title: Re: Order Statuses showing Constants
Post by: Milbo on January 23, 2015, 12:48:04 PM
Nothing is messed up. You are an administrator! This just displays the information that the orderstatusi are translated! and the name of the key, because usually administrators like to know that. You can also just modify it without using any key.
Title: Re: Order Statuses showing Constants
Post by: MAD King on January 23, 2015, 16:01:10 PM
Milbo, in English, please. I have no idea what you mean. The constants are showing and this cannot be normal.
Title: Re: Order Statuses showing Constants
Post by: jenkinhill on January 23, 2015, 16:42:26 PM
I thought it was obvious. The strings used are shown together with the constant to the admin. This makes it quicker if you want to set up an override to change eg Confirmed by shopper  to Confirmed by buyer, or use the language constant in a template override.

Same as if you want to change shopper groups. Open a shopper group details page and you can se the language constants used.

Title: Re: Order Statuses showing Constants
Post by: MAD King on January 23, 2015, 16:45:03 PM
Quote from: jenkinhill on January 23, 2015, 16:42:26 PM
I thought it was obvious. The strings used are shown together with the constant to the admin. This makes it quicker if you want to set up an override to change eg Confirmed by shopper  to Confirmed by buyer, or use the language constant in a template override.

Same as if you want to change shopper groups. Open a shopper group details page and you can se the language constants used.



Ahhh. That was clear. Thank you very much for the explanation.
Title: Re: Order Statuses showing Constants
Post by: Milbo on January 23, 2015, 18:12:29 PM
Quote from: jenkinhill on January 23, 2015, 16:42:26 PM
or use the language constant in a template override.

Or for single language stores, just enter your description.
Title: Re: [cleared] Order Statuses showing Constants
Post by: bluezeyes on January 23, 2015, 19:21:00 PM
Could that really be,

that jenkinhill and Milbo have to answer the same, like me some posts before?
Uaaaaahh...

But great, That this is now cleared! :)

Title: Re: [cleared] Order Statuses showing Constants
Post by: Milbo on January 23, 2015, 21:44:35 PM
and due a joomla habit, the override must be done for the FE and BE !
Title: Re: [cleared] Order Statuses showing Constants
Post by: bluezeyes on January 24, 2015, 18:20:06 PM
Quote from: Milbo on January 23, 2015, 21:44:35 PM
and due a joomla habit, the override must be done for the FE and BE !
But you you can ease your work, when you just make a override for the admin language and select the check box "in both" under the content field. 
Title: Re: [cleared] Order Statuses showing Constants
Post by: Milbo on January 26, 2015, 12:38:16 PM
Is this a new option in j3?
Title: Re: [cleared] Order Statuses showing Constants
Post by: jenkinhill on January 26, 2015, 13:38:36 PM
It is present in J3.3.6 as "For both locations" - not sure when it was introduced, though.
Title: Re: [cleared] Order Statuses showing Constants
Post by: Milbo on January 26, 2015, 14:55:21 PM
very great, indeed it was my last problem with the language system.
Title: Re: [cleared] Order Statuses showing Constants
Post by: bluezeyes on January 26, 2015, 16:36:31 PM
That option exists since joomla  2.6.xx

Greets,

Bluezeyes