Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2010
    Location
    Buenos Aires
    Posts
    48
    Plugin Contributions
    0

    Default Add to cart link doesn't work

    Hi there,

    In the product info pages, the link "add this to my cart" on the right doesn't work. Any idea?

    A second issue: I'd like to change the link of button "back to shopping" in the shopping cart page, but I can't find where to change it.

    thanks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add to cart link doesn't work

    Your Add to Cart code is outside of the <form> tags ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jun 2010
    Location
    Buenos Aires
    Posts
    48
    Plugin Contributions
    0

    Default Re: Add to cart link doesn't work

    Thanks Ajeh but I can't find the file where to change it, even using the developer tool
    Same thing for the shopping cart buttons..

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add to cart link doesn't work

    The problem would be in the:
    /includes/templates/your_template_dir/templates/tpl_product_info_display.php

    compare it to the original in:
    /includes/templates/template_default/templates/tpl_product_info_display.php
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jun 2010
    Location
    Buenos Aires
    Posts
    48
    Plugin Contributions
    0

    Default Re: Add to cart link doesn't work

    I've replaced the code with the original one and it still doesn't work. It didn't find where the tags are missing:

    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
    // do nothing
    } else {
    ?>
    <?php
    $display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
    if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
    // hide the quantity box and default to 1
    $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
    } else {
    // show the quantity box
    $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
    }
    $display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
    ?>
    <?php if ($display_qty != '' or $display_button != '') { ?>
    <div id="cartAdd">
    <?php
    echo $display_qty;
    echo $display_button;
    ?>
    </div>
    <?php } // display qty and button ?>
    <?php } // CUSTOMERS_APPROVAL == 3 ?>
    <!--eof Add to Cart Box-->

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add to cart link doesn't work

    In the file you will see the start of the form:
    Code:
    <!--bof Form start-->
    <?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product', $request_type), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
    <!--eof Form start-->
    then the close of the form:
    Code:
    <!--bof Form close-->
    </form>
    <!--bof Form close-->
    The Add to cart code has to be between those two some where ...

    Your Add to Cart code is above the:
    <!--bof Form start-->
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jun 2010
    Location
    Buenos Aires
    Posts
    48
    Plugin Contributions
    0

    Default Re: Add to cart link doesn't work

    Ok I get it now, thank a lot Ajeh, have a good day!

 

 

Similar Threads

  1. Replies: 3
    Last Post: 25 Oct 2010, 04:39 PM
  2. sometimes ie8 add to cart doesn't work on my site
    By Maxie1971 in forum Bug Reports
    Replies: 36
    Last Post: 21 Apr 2010, 01:14 PM
  3. Add to cart button sometimes doesn't work
    By eastwood in forum Bug Reports
    Replies: 4
    Last Post: 3 Nov 2009, 03:51 PM
  4. Add to cart link doesn't work - no link when I mouseover
    By wyckoff in forum Basic Configuration
    Replies: 0
    Last Post: 26 Oct 2009, 09:12 PM
  5. blank login page and add to cart doesn't work
    By hotshotp2 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 19 Apr 2008, 02:11 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