Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Removing "+" from Drop-down Menu › Reply To: Removing "+" from Drop-down Menu
Again, not a JavaScript guy and there are too many variables running through my head right now to take a risk assuming what I should do, so if you could please refer to the exact code I have here:
function CheckTok (object1)
{
var j,tok,ary=new Array (); // where we parse
ary = val.split (” “); // break apart
val_1st_half = ary[0];
for (j=0; j<ary.length; j++)
{
// look at all items
// first we do single character tokens…
if (ary[j].length < 2) continue;
tok = ary[j].substring (0,1); // first character
val = ary[j].substring (2); // get data
if (tok == “+”)
{
//alert(val);
amt = amt + val*1.0;
}
if (tok == “-“)
{
amt = amt – val*1.0;
}
}
}
And please provide the new code to replace this for my solution…