This should be close to what you're looking for. I'm not sure if it works because I have my radio button id's modified. I edited this version to work with the default x-cart installation. At a minimum, this is a good place to start for others.
Change the SELECT elements to INPUT type RADIO as mentioned in previous posts. Then...
In skin1/modules/Product_Options/func.js
Change:
Code:
/*
Get product option value
*/
function getPOValue(c) {
if (!document.getElementById('po'+c) || document.getElementById('po'+c).tagName.toUpperCase() != 'SELECT')
return false;
return document.getElementById('po'+c).options[document.getElementById('po'+c).selectedIndex].value;
}
To:
Code:
/*
Get product option value -modified
*/
function getPOValue(c) {
if (!document.getElementsByName('product_options['+c+']'))
return false;
var radios = document.getElementsByName('product_options['+c+']');
for (var i = 0; i < radios.length; i++) {
if (radios[i].checked) {
return radios[i].value;
}
}
}
Let me know how it goes.
-Scott