VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: mortezafs on April 19, 2016, 14:22:56 PM

Title: all dropdowns not work in administartor in other languages
Post by: mortezafs on April 19, 2016, 14:22:56 PM
Hey guys

i installed virtuemart version 3.0.14 in  my joomla 3.
when i change my joomla language to persian then dropdown list do not work in my virtuemart in all of parts, like product or category and etc.
What should I do now to solve this problem.

regards.
Title: Re: all dropdowns not work in administartor in other languages
Post by: mortezafs on June 09, 2016, 21:05:17 PM
i solved this problem and you can use from this solution to solve your problem with rtl language in virtuemart 3.


for first step you need download "chosen.jquery_rtl.min.js" file(attached). and copy on bellow path:

Quotejoomla root\components\com_virtuemart\assets\js

and for step 2 copy and replace this code


                                if(JFactory::getDocument()->direction == 'rtl')
                                {
                                    vmJsApi::addJScript('chosen.jquery_rtl.min',false,false);
                                }
                                else
                                {
                                    vmJsApi::addJScript('chosen.jquery.min',false,false);
                                }


with

vmJsApi::addJScript('chosen.jquery.min',false,false);

on "vmjsapi.php" file on line 482
file path :

Quotejoomla root\administrator\components\com_virtuemart\helpers\vmjsapi.php

regards.