So I have an OSCommerce store with many mods, but two in particular called Option Type Feature and Options as Images. My store focuses on custom shirts and other items. I installed Option as Images, but it only sets up images as radio buttons, I want to(but can't figure out how to) set it up so I have small images(such as color swatches) in a dropdown list. This way my customers can see the actual color they are ordering, rather then just the title of the color. I'd prefer a dropdown lsit as opposed to a radio button for a cleaner look. Anyone ever do this? can you lead me in the right direction?
Thats the lesser of two evils though. I also have the Option Type feature which allows customers to inform me of what text they want on thier items and this is great. BUT the first ten letters are free and anything there after should be an additional charge per letter. I've seen another OSC store with a textcounter that add to the price and shows the customer the count of letters they're requesting. I tried contacting them with no success, and I viewed thier source and only came up with this partial code.
Code:
<SCRIPT LANGUAGE="JavaScript">
function textCounter(field,cntfield,xtrafield) {
if (field.value == '') {
cntfield.value = 0;
}else{
var charCount=0;
for (var i = 0; i < field.value.length; i++) {
if (field.value.charAt(i) != " ")
charCount++;
}
cntfield.value = charCount;
}
if (cntfield.value >14) {
xtrafield.value=(cntfield.value-14)*0.65;
}else{
xtrafield.value=0;
}
}
</script>
<tr><Td valign=top><img src="images/icons/step_4.gif" width=50 height=50 name=img_3 hspace=5 border=0></a></Td><td class="main" valign=top><big><b>Custom Text</b></big><br>What's it going to say? The first 14 letters are free, after that each letter is ¢65<br><input
onKeyDown="textCounter(document.cart_quantity.id_3,document.c art_quantity.idlen_3,document.cart_quantity.idxtra _3)"
onKeyUp="textCounter(document.cart_quantity.id_3,document.c art_quantity.idlen_3,document.cart_quantity.idxtra _3)"
type=text maxlength=250 value="" id="id_3" name="id[3]"><bR>Total Letters Used <input type=text size=3 id="idlen_3"> Extra Charge <input type=text id="idxtra_3" size=3><br><!--<input type=checkbox name="idnotxt[3]" id="idnotxt_3" onClick="notxtitems();">I'd actually prefer not to have any text on my order (Reduce Order Cost by $10)--></td></tr>
<script>textCounter(document.cart_quantity.id_3,document.c art_quantity.idlen_3,document.cart_quantity.idxtra _3);</script>
this was taken from the products_info.php page, I tried to get it to work with my code with no success, and that's probably because it's only part of the code. To see a working example, here is a link http://neighborhoodies.com/catalog/product_info.php?products_id=48&osCsid=756cd1d9c15642f4de02592514c2507a
I'm exasperated trying to figure this out, but if someone can please help me out. In the example two of the things I'm trying to achieve is whats happening on steps 4 and 8, and notice how the images of the steps update with an image of your selection? I'd liek to do that as well, if thats easier then doing the dropdown list of images. thanks again for anybody, that can start leading me in the right direction.
