News:

Support the VirtueMart project and become a member

Main Menu

all dropdowns not work in administartor in other languages

Started by mortezafs, April 19, 2016, 14:22:56 PM

Previous topic - Next topic

mortezafs

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.

mortezafs

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.