VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: ribo on December 30, 2020, 01:03:58 AM

Title: Shopper field select issue
Post by: ribo on December 30, 2020, 01:03:58 AM
Hello,
in every shopper field type "select" in frontend shopping cart in Billing details it shows the label and not the tittle of the selected option that you create in this field as it shows correctly the tittle instead the label in Email when you "check out now".
How we can change this to have the tittle and not the value in Billing details and in Shipping details if we want?
Title: Re: Shopper field select issue
Post by: Jörgen on December 30, 2020, 09:54:07 AM
Sounds like a template issue.
Hard to tell without images versions, template use, opc etc

Jörgen @ Kreativ Fotografi
Title: Re: Shopper field select issue
Post by: ribo on December 30, 2020, 22:51:42 PM
No it s not template issue as the same happens and in protostar.
Let me give you an example.
We have the shopper field "Title". This have two values "Mr" and "Mrs". In english language it s ok as values and tittles of the field are the same. But in greek language the values are "Mr" and "Mrs" and the tittles are "Κ." and "Κα" . So in Billing details in greek language shows "Mr" and "Mrs" which are the values and in Email it shows correctly "Κ." and "Κα"(tittles) as they are in greek language. So the problem is that in billing details shows the value and in there i can t use greek language as we have utf8 characters.
My big problem is that if i will use another field with letters that english language not have in greek language i can t hide the problem.
Note i use joomla 3.9.23 and virtuemart 3.8.6.10373 and php 7.3.25
Title: Re: Shopper field select issue
Post by: Jörgen on December 31, 2020, 00:11:32 AM
Use language keys that will be translated into correct language for the label field.

Jörgen
Title: Re: Shopper field select issue
Post by: ribo on December 31, 2020, 00:42:54 AM
This is not a solution as the field "tittle" has languages keys but when you will save the billing details it appear the value of the field and not the tittle in greek language.
Edit: sorry that i didn t mentioned that the issue happens when you save the billing details as guest and the same are and as a registered user when you save the billing details.
Title: Re: Shopper field select issue
Post by: Jörgen on December 31, 2020, 02:15:16 AM
If Ypu want help You have to show some images. You are not really explaining the problem very well.

Jörgen
Title: Re: Shopper field select issue
Post by: ribo on December 31, 2020, 03:24:44 AM
In the first image(billing-details.jpg) is billing details is joomla frontend when you save. The marked are the values of the type select fields and not the tittles
In the second image(mail.jpg) this is the email with billing details and the marked are the tittles of type select fields that they are translated in greek language.
So in the first image don t put the translated tittles of the field as the email does.