Hi,
after exploring the various forums in English I could not find a solution to the problem, now I try another way.
I would like to add action to the flags that change the language.
From the file: modules / mod_jflanguageselection / tmpl / rawimages.php
line 65
$ outString. = '<span'. $ langActive. '> <a href="' .$href.'"> <img src="' .JURI::base(true). $langImg.'" alt="' .$language-> name.' "title = "'. $ language-> name.'" /> </ a> </ span> ';
I wish to enter the code in action to empty the basket if you were to change the language.
I found this code online but are unable to make it work, I hope for your help.
This code I put it on the page rawimages.php
$ catid = vmGet ($ _REQUEST, "category_id", null);
$ ProdID = vmGet ($ _REQUEST, 'product_id', null);
$ page = vmGet ($ _REQUEST, 'page', null);
$ flypage = vmGet ($ _REQUEST, "flypage", null);
$ delete_cart = "<a href = \" ". $ _SERVER ['SCRIPT_NAME']. title = \ "". $ VM_LANG-> _ ('PHPSHOP_EMPTY_YOUR_CART'). "\ "> <div Empty Cart </ div> </ a>";
html1 vmToolTip = $ ($ VM_LANG-> _ ('VM_EMPTY_YOUR_CART_TIP'), $ VM_LANG-> _ ('PHPSHOP_EMPTY_YOUR_CART'),'','', $ delete_cart, true);
$ = $ delete_cart html1;
I modified the code in the first flag button like this:
<a href="' .$href. '.$delete_cart.'">
The result is that the cart is emptied even if the language change works.
Thanks for the help