@Jul, thanks for the links, but this is just admin translation, i’m looking for something that could handle on-the-fly translation of "view cart", "add to cart", "buy now"...
Sorry for asking again,products are added twice when adding to cart.
Someone solved this by uncaching product pages but it has no effect for me.
http://modxcms.com/forums/index.php/topic,35306.new.html#new
EDIT : is there an unpacked treasurechest.js availbale somewhere for trying to debug ?
EDIT : Here is a dirty hack for those who may face the same problem :
if ($product['inventory'] != NULL)
{
$this_item = array();
$items = explode(',', $cart);
foreach ($items as $item)
{
if ($item == $id) $this_item[] = $item;
}
if (count($this_item) >= $product['inventory']) return;
}
// Add the three following lines
$_SESSION['dirtyHack']++;
if ($_SESSION['dirtyHack']%2==0){
$cart .= ','.$id;
}
}
Just add three lines in treasurechest.class.php at LINE 103.
I still have no idea why products are added twice or what i’ve done wrong, but after a very long struggle this solution could be helpful for anyone else.