VirtueMart 1.1.x [ Old version - no longer supported ] > Attributes, Child Products VM 1.1
Anomaly Cart VM languages
(1/1)
leonte54:
Hi,
Using VM 1.1.8 and J 1.5.23
If the user placing the order and sends it in their own language is okay, but if after you choose the products in your basket and then sends the order to another language, product attributes are not counted but are ordered .
I really hope in your help.
thanks
leonte54:
Hi,
waiting and hoping that someone can give me some tips to solve the problem described above, I ask if you can, using php, blocking out the order, if this does not depart from the page where the language is compiled.
thanks
leonte54:
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
--- Code: ---$ outString. = '<span'. $ langActive. '> <a href="' .$href.'"> <img src="' .JURI::base(true). $langImg.'" alt="' .$language-> name.' "title = "'. $ language-> name.'" /> </ a> </ span> ';
--- End code ---
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
--- Code: ---$ 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;
--- End code ---
I modified the code in the first flag button like this:
--- Code: ---<a href="' .$href. '.$delete_cart.'">
--- End code ---
The result is that the cart is emptied even if the language change works.
Thanks for the help
kregus:
I tried your code, but to no avail. Have you managed to empty your cart when the language is changed?
Navigation
[0] Message Index
Go to full version