Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2010
    Location
    Ireland
    Posts
    88
    Plugin Contributions
    0

    Default add to cart appearing in the wrong area

    Hi there, I have a weird css problem where the add to cart button appears in the 'customers who bought this product also purchased...' box.

    for example
    this product has the problem.

    Its strange because most of the rest of my catalogue seems to work fine. I know this is probably an easy fix but I'm rubbish with css

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: add to cart appearing in the wrong area

    You could try this...

    In your custom templates folder, look for:
    tpl_product_info_display.php

    Make a backup of the file, then...
    open it for editing

    FIND:
    PHP Code:
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      
    // do nothing
    } else {
    ?>
                <?php
        $display_qty 
    = (($flag_show_product_info_in_cart_qty == 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 == 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_CARTBUTTON_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_CARTBUTTON_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-->
    And then add this line...
    <br class="clearBoth">
    ... just above this line...
    <!--eof Add to Cart Box-->

    PHP Code:
      <?php // display qty and button ?>
    <?php 
    // CUSTOMERS_APPROVAL == 3 ?>
    <br class="clearBoth">
    <!--eof Add to Cart Box-->
    Save the file and ftp it back to your server.
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2010
    Location
    Ireland
    Posts
    88
    Plugin Contributions
    0

    Default Re: add to cart appearing in the wrong area

    Hi, thanks for answering. That worked a treat, cheers!

 

 

Similar Threads

  1. Add to Cart button not appearing on products w/attributes
    By marleyman in forum General Questions
    Replies: 7
    Last Post: 20 Sep 2010, 05:52 PM
  2. Gift Certificates Missing Add to Cart and Appearing in New Products
    By limelites in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 10 Feb 2009, 06:30 PM
  3. How do you edit the "Add to Cart" area?
    By bugyoutoo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Mar 2008, 06:42 PM
  4. add to cart buttons not appearing
    By 7thVeil in forum General Questions
    Replies: 3
    Last Post: 25 Feb 2007, 03:33 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