Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Aug 2013
    Location
    California
    Posts
    22
    Plugin Contributions
    0

    Default why does this code not work?

    PHP Code:
    <?php
    //need to drop an add to cart button here.

    echo zen_draw_form('cart_quantity'zen_href_link(zen_get_info_page($products_id), zen_get_all_get_params(array('action')) . 'action=add_product'$request_type), 'post''enctype="multipart/form-data"');
    ?>
    <input type="hidden" name="cart_quantity" value="<?php echo $qty ?>" maxlength="6" size="4" />
    <input type="hidden" name="products_id" value="<?php echo $products_id ?>" />
    <input type="image" name="image" title=" Add to Cart " src="button_in_cart.gif" alt="Add to Cart " />
    </form>
    Using this form the item adds to cart successfully but never with the correct quantity. What do I need to change to get to the correct quantity?

    EDIT: Changed the img src url for a little more security.
    Last edited by nazca; 4 Oct 2013 at 09:51 PM.

 

 

Similar Threads

  1. Why doesn't this code I wrote work ?
    By royaldave in forum General Questions
    Replies: 1
    Last Post: 14 Mar 2014, 01:21 PM
  2. v151 my custom jQuery code does not work, why??
    By tlyczko in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 27 Dec 2012, 12:09 AM
  3. Why Does this SQL not work?
    By plymgary1 in forum General Questions
    Replies: 5
    Last Post: 7 Jun 2011, 11:24 AM
  4. Why does it not work? Please help!
    By pasb in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 22 Jul 2009, 04:01 PM
  5. Why does this only work in the product listing - CSS puzzle
    By budfox in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Feb 2007, 08:28 AM

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