Converting DOT into COMMA in "thePriceField" (script) in Products_Detail.php
Hi Jason
I made a fresh install of Powerstore 2 on my PC and configure the MySQL server according to your settings.
The ProductName is now displaying the french accented characters the right way when selecting an option or a value.
I modified somewhat the script of the function updateProduct(ProdID) in Products_Detail.php to display the EUROI currency symbol after the price:
var theForm = document.getElementById("WA_Store_Cart_1_ATC_<?php echo $row_WADAProducts["ProductID"]; ?>");
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
{
if (xmlHttp.responseText != "") {
var theRet=xmlHttp.responseText;
var thePriceField = getFromRSDump(theRet,"ProductPrice");
if (thePriceField.indexOf(".")==-1) {
thePriceField += ",00 €";
}
if (thePriceField.indexOf(".")==thePriceField.length-2) {
thePriceField += "0 €";
}
document.getElementById("ProductPrice").innerHTML = thePriceField;
Can you help me to get rid of the "dot" as a decimal character in this script, because we use a "comma" to separate decimals ?
I think of converting the DOT into a COMMA within "thePriceField", but don't know how to do it !
Thank you for your kind help
Dan