Hi,
I just added a product option called Monogram with the option type text, but when I tried to tie it to a product (products attributes) I needed to add an option value too (since it's a text I don't want any value to be displayed)...
The text field on the product_info.php page look strange and I get the following error message, Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; PPP v5.1 (1,1,1); Windows NT 6.0; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Mon, 11 Oct 2010 04:29:24 UTC
Message: Invalid argument.
Line: 20
Char: 5
Code: 0
URI: http://bizkriz.com/catalog/product_info.php?products_id=139
What have I done wrong? How should I add product attributes with text fields? Pls help, I'm lost!
Latest News: (loading..)
Option types v2 - text field
Started by Mape, Oct 11 2010, 04:32
3 replies to this topic
#1
Posted 11 October 2010, 04:32
#2
Posted 26 October 2010, 15:26
Anyone? Please!
More info regarding the problem, I added the add-on Option Values to tie different attributes to my products.
This works fine for checkboxes, radio bottons, dropdown-menus but not for the text input fields.
I know I must have done something wrong but I have been comparing files and I cannot find anything. Can someone please point me in the right direction (give me a hint on where the error might be).
The text input box looks like it is duplicated, I get two boxes with slightly different appearance.
When I view the source from the browser the part for text box looks like this:
<td class="main"><input type="text" name="id[txt_11]" id="id[txt_11]" size="0" maxlength="0"
value=""onKeyDown="textCounter(this,'progressbar_11',0)"
onKeyUp="textCounter(this,'progressbar_11',0)"
onFocus="textCounter(this,'progressbar_11',0)"> <div id="counterbar_11" class="bar"><div id="progressbar_11" class="progress"></div></div>
<script>textCounter(document.getElementById("id[txt_11]"),"progressbar_11",0,"counterbar_11")</script></td>
An error message occurs "Invalid argument" product_info.php, line 20, char 5.
Line 19 to 23 contains this:
if (linecounter) {
document.getElementById(counter).style.width = parseInt((fieldWidth*percentage)/100)+"px";
document.getElementById(linecounter).style.width = parseInt(fieldWidth)+"px";
document.getElementById(counter).innerHTML="<nobr>Max: "+percentage+"% - ("+charcnt+"/"+maxlimit+")</nobr>";
} else {
Where should I start? Pls, let me know if further info is needed.
More info regarding the problem, I added the add-on Option Values to tie different attributes to my products.
This works fine for checkboxes, radio bottons, dropdown-menus but not for the text input fields.
I know I must have done something wrong but I have been comparing files and I cannot find anything. Can someone please point me in the right direction (give me a hint on where the error might be).
The text input box looks like it is duplicated, I get two boxes with slightly different appearance.
When I view the source from the browser the part for text box looks like this:
<td class="main"><input type="text" name="id[txt_11]" id="id[txt_11]" size="0" maxlength="0"
value=""onKeyDown="textCounter(this,'progressbar_11',0)"
onKeyUp="textCounter(this,'progressbar_11',0)"
onFocus="textCounter(this,'progressbar_11',0)"> <div id="counterbar_11" class="bar"><div id="progressbar_11" class="progress"></div></div>
<script>textCounter(document.getElementById("id[txt_11]"),"progressbar_11",0,"counterbar_11")</script></td>
An error message occurs "Invalid argument" product_info.php, line 20, char 5.
Line 19 to 23 contains this:
if (linecounter) {
document.getElementById(counter).style.width = parseInt((fieldWidth*percentage)/100)+"px";
document.getElementById(linecounter).style.width = parseInt(fieldWidth)+"px";
document.getElementById(counter).innerHTML="<nobr>Max: "+percentage+"% - ("+charcnt+"/"+maxlimit+")</nobr>";
} else {
Where should I start? Pls, let me know if further info is needed.
#3
Posted 04 February 2012, 14:59
Hello,
I have downloaded the option types v2, and I get error messages, or I try a different download and the folder I downloaded has no files in it. I need to create text boxes for my products and need to know where to start. Please help.
Thanks
Ashley
I have downloaded the option types v2, and I get error messages, or I try a different download and the folder I downloaded has no files in it. I need to create text boxes for my products and need to know where to start. Please help.
Thanks
Ashley














