Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Basic html question....:)

    I have zen cart setup here

    http://www.hostmeeting.com/aeol_stoc...16&language=en

    I modified the code to show the available sizes only when color is selected. This was done dynamically using javascript

    Now I dont get the size value passed to the next page
    This is because I changed

    FROM
    Code:
    <select name="id[2]" id="attrib-2">
      <option value="4">XS</option>
      <option value="5">S</option>
      <option value="6">M</option>
      <option value="7">L</option>
      <option value="8">XL</option>
    </select>
    TO
    Code:
    <SELECT NAME="id[2]">
    <script type="text/javascript">
    regionState.printOptions("id[2]")
    </script></SELECT>
    So, obviously the value of id[2] is not getting passed.
    Is there any simple way to do the same?

    Also, the code for 'Add to Cart' image button says
    Code:
     <div id="cartAdd">
        <div class="qtybox">
    Quantity: 
    <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" />
    </div>
    <div class="buybutt">
    <input type="hidden" name="products_id" value="16" />
    <input type="image" 
    src="includes/templates/nones/buttons/english/button_in_cart.gif" 
    alt="Add to Cart" title=" Add to Cart " />
    </div>          </div>
    
      <!--eof Add to Cart Box-->
    
    </div>
    How to know which page(or action) would be called when clicking that image?
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Basic html question....:)

    Leave the id in the select.

    The input submits the form that it is in. That's what a submit button does. The form tag is at the top of product_info_display.php, or near the top anyway.

 

 

Similar Threads

  1. v154 Store Gone Loopy! Shows Up With No Theme, Only Basic HTML
    By Blenderite in forum General Questions
    Replies: 3
    Last Post: 25 Sep 2015, 05:28 PM
  2. Basic HTML Question How do I Format to next line....
    By milobloom in forum General Questions
    Replies: 4
    Last Post: 5 Oct 2009, 12:17 AM
  3. Need a basic HTML tip for putting two scripts next to each other
    By mlguenther in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Jan 2009, 05:50 AM
  4. Basic Question
    By iDartsOnline in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 21 Jun 2008, 07:42 AM
  5. basic php layout (teach me html?)
    By eaglewu in forum General Questions
    Replies: 1
    Last Post: 29 Jan 2007, 06:19 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR