Results 1 to 3 of 3
  1. #1
    Join Date
    May 2011
    Posts
    67
    Plugin Contributions
    0

    Default Creating a static product page

    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.

  2. #2
    Join Date
    May 2011
    Posts
    67
    Plugin Contributions
    0

    Default Re: Creating a static product page

    Am trying this code:

    <div class="wrapperAttribsOptions">
    <h4 class="optionName back"><label class="attribsInput" for="attrib-9-0">Text line 1:</label></h4>
    <div class="back">
    <input type="text" name="id[TEXT_PREFIX9]" size="32" maxlength="20" value="" id="attrib-9-0" />

    </div>
    </div>


    Still the same result.

  3. #3
    Join Date
    May 2011
    Posts
    67
    Plugin Contributions
    0

    Default Re: Creating a static product page

    OK. So my problem is this:

    In shopping cart page (where cart items are displayed) source code, this code,

    <input type="hidden" name="id[130:fe2e6643b6406d2b396163730669ba4e][TEXT_PREFIX15]" value="Jennifer" /><input type="hidden" name="id[130:fe2e6643b6406d2b396163730669ba4e][txt_17]" />

    is present like it should be. Yet, when it comes to displaying those results, the text doesn't show:

    <li>&nbsp;-&nbsp;</li>


    As you can see, where the option name and "Jennifer" should appear, there are only spaces.

    Is this just a simple html error that can be fixed?

    Anybody?

 

 

Similar Threads

  1. v151 Static Home Page and Custom Product Pages Help
    By skeeterz71 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Mar 2014, 03:33 AM
  2. Adding static text on every product page
    By MaDd0g in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Jul 2010, 12:54 PM
  3. Maintaining/ Creating a new Session from static pages ZenID
    By attaboyleisure in forum General Questions
    Replies: 4
    Last Post: 14 Feb 2010, 07:43 AM
  4. creating a static page in zen cart
    By keak182 in forum General Questions
    Replies: 0
    Last Post: 15 Apr 2008, 03:36 AM
  5. Creating more static banners
    By KTNaturals in forum Basic Configuration
    Replies: 4
    Last Post: 4 Nov 2007, 09:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg