News:

Support the VirtueMart project and become a member

Main Menu

How to make english transliteration for product aliases in VM2.6.6?

Started by borro, May 29, 2014, 08:16:05 AM

Previous topic - Next topic

borro

Hello

Testing Virtuemart 2.6.6. If I'm adding a new product named in russian then its alias becomes written in russian alphabet. How to return english transliteration by default in VM 2.6.6 for aliases?
I tried to change this string in /administrator/components/com_virtuemart/helpers/vmtable.php
$unicodeslugs = VmConfig::get('transliterateSlugs',false);
to this one:
$unicodeslugs = VmConfig::get('transliterateSlugs',true);
but after that alias becomes equal to such e.g. value:
%D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D1%8B%D0%B9-%D0%B1%D1%80%D0%B5%D0%BB%D0%BE%D0%BA

What should i change?
Wish you happiness!

MekkE

Good question, this is a very important bug, I have same issue with the Hungarian characters (like öüóúőáéű):( Previously, it was good, something is wrong in this release (2.6.4)

borro

Wish you happiness!

GJC Web Design

Sorry - we english speakers un-saddled as we are with funny letters know very little about this stuff..  :(
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

MekkE

Quote from: GJC Web Design on June 03, 2014, 08:59:02 AM
Sorry - we english speakers un-saddled as we are with funny letters know very little about this stuff..  :(

So u say Virtuemart ecommerce system only for English territory (at the moment we can't use the newest version..)?:(

Btw this is so simple:
Before 2.6.2 everything ok, the update broke this part..thats all. I think the developers know what has changed, until now it was work, so they know the solution (but they don't respond this  bug..:( )
I think this is a serious bug -but reletive easy to fix, because previously it was good-, yes does not affect everyone, but this is a Ecommerce system so multilingualism is basic featue (I think so)

Just try using this letters or any non english character (in product name or product category..or product manufacture - all wrong:()
öüóúőűáé

@borro:
I don't know why, but now it's $unicodeslugs = VmConfig::get('transliterateSlugs',true); work (for me). I don't do anything..but now its work..strange.

So now the characters are good (like őúűáéüó), but if i have comma or dot in the product name/category/manufacture:

comma replace to->%2C
dot -> untouched, don't cut out the sef alias
   


borro

Hm... I think i need to discover what functions are hiding behind the code:
VmConfig::get('transliterateSlugs',true)
may be there is some php extension which is not presented at my shared hosting
Wish you happiness!

MekkE

Quote from: borro on June 10, 2014, 14:13:38 PM
Hm... I think i'l need to discover what functions are hiding behind
VmConfig::get('transliterateSlugs',true)
may be there is some php extension which is not presented at my shared hosting

Dont think so..this is VM bug:( dot and comma in slug + product pictures save as accent filename :(
Untill VM 2.6.2, Joomla still works fine

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/