Hello,
I'm using zen cart 1.3.9.
Ok, don't laugh, but I'm trying to create a seperate, static page for one of my products. The reason for this is that I've configured my attributes module by adding the "dynamic drop downs for attribute stock" module. Well, long story short, dynamic drop downs will not allow for attributes with text input by customers. This is Ok for all my products except one. For just ONE product, ONE, I need the ability for customers to input text or upload images.
So, I've copied the page source from another product page and inserted it into the page I created. Then, I went down to the attributes section, and replaced that code with code I got from another zen cart website whose product page source included text attributes in its attributes section.
I replaced this:
<select name="id[9]" onchange="i9(this.form);">
<option value="0" selected="selected">First select Left Chest (Company usually here</option>
<option value="0" selected="selected">TEXT</option>
</select>
<script type="text/javascript" language="javascript"><!--
var stk={0:{0:1}};
var txt11={0:'TEXT '};
function i9(frm) {
frm['id[11]'].length=1;
for (opt in stk[frm['id[9]'].value]) {
frm['id[11]'].options[frm['id[11]'].length]=new Option(txt11[opt],opt);
}
}
i9(document.cart_quantity);
function chksel() {
var ok=true;
if (this['id[9]'].value==0) ok=false;
if (this['id[11]'].value==0) ok=false;
if (!ok) alert('TEXT_SELECT_OPTIONS');
return ok;
}
document.cart_quantity.onsubmit=chksel;
//--></script>
with this:
<textarea class="attribsTextarea" name="id[TEXT_PREFIX9]" rows="1" cols="5"
onkeydown="characterCount(this.form['id[TEXT_PREFIX9]'],this.form.remainingTEXT_PREFIX9,50
0);"
onkeyup="characterCount(this.form['id[TEXT_PREFIX9]'],this.form.remainingTEXT_PREFIX9,500);"
id="attrib-9-0" ></textarea>
On my product page on website (http://imuniforms.com/embroidery_services_2.html), I was able to add my text attribute to shopping cart. However, continuing on to the shopping cart page, the product itself showed up but the attributes did not. Viewing the source code for that page, the text attributes were still present.
Either I punched in the option name id incorrectly or there's something that I'm totally missing or this just isn't possible....I'm a beginner so forgive me if I might not know something obvious!
Any insight, even just telling me this won't work, will be much appreciated.
A grateful zencarter.


Reply With Quote

