Author Topic: Anomaly Cart VM languages  (Read 687 times)

leonte54

  • Beginner
  • *
  • Posts: 5
Anomaly Cart VM languages
« on: June 10, 2012, 02:42:19 AM »
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

  • Beginner
  • *
  • Posts: 5
Re: Anomaly Cart VM languages
« Reply #1 on: June 11, 2012, 04:07:04 AM »
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

  • Beginner
  • *
  • Posts: 5
Re: Anomaly Cart VM languages
« Reply #2 on: June 14, 2012, 03:26:35 AM »
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: [Select]
$ 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

Code: [Select]
$ 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:
Code: [Select]
<a href="' .$href. '.$delete_cart.'">
The result is that the cart is emptied even if the language change works.

Thanks for the help

kregus

  • Beginner
  • *
  • Posts: 7
Re: Anomaly Cart VM languages
« Reply #3 on: July 16, 2012, 13:49:39 PM »
I tried your code, but to no avail. Have you managed to empty your cart when the language is changed?

VirtueMart Forum

Re: Anomaly Cart VM languages
« Reply #3 on: July 16, 2012, 13:49:39 PM »