Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2016
    Location
    Georgia USA
    Posts
    37
    Plugin Contributions
    0

    Default Add to Cart text on the prodcut page

    Hey yall, i hope somebody can tell me what i did...

    v1.5.5d
    https://www.naturesfocus.us/Mountain...09388bcc53fd00


    I've been messing around with the placement of the add to cart button on the product info page and it looks like I've somehow removed the "Add to Cart: " text that goes just before the quantity box. I've not made any changes to the stylesheet.css file in that area but i have change the tpl_product_info_display.php by moving the Add to Cart Box section around.

    Thanks in advance.

    the settings in categories/products look to be correct.
    Product quantity Box Shows: YES
    Product Quantity Min: 1
    Product Quantity Max: 0
    Product Quantity Units: 1


    Configuration > Product Listing:

    Title Value Action
    Display Product Image 0
    Display Product Manufacturer Name 0 Info
    Display Product Model 0 Info
    Display Product Name 2 Info
    Display Product Price/Add to Cart 3 Info
    Display Product Quantity 1 Info
    Display Product Weight 0 Info
    Display Product Price/Add to Cart Column Width 125 Info
    Display Category/Manufacturer Filter (0=off; 1=on) 1 Info
    Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) 3 Info
    Display Product Listing Default Sort Order Info
    Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product) 2 Info
    Display Multiple Products Qty Box Status and Set Button Location 3 Info
    Display Product Description 150 Info
    Product Listing Ascending Sort Order + Info
    Product Listing Descending Sort Order - Info
    Include Product Listing Alpha Sorter Dropdown true Info
    Include Product Listing Sub Categories Image true Info
    Include Product Listing Top Categories Image true Info
    Show SubCategories on Main Page while navigating 1 Info

    here's the section I've been playing with, all i did was move it up, didn't like that so i moved it down.

    <!--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 = '<div class="max-qty">' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '</div><span class="qty-text">' . PRODUCTS_ORDER_QTY_TEXT . '</span><input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" />' . 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-->
    </div>
    </div>

  2. #2
    Join Date
    Jul 2012
    Posts
    16,735
    Plugin Contributions
    17

    Default Re: Add to Cart text on the prodcut page

    Looks fine on mobile.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Aug 2016
    Location
    Georgia USA
    Posts
    37
    Plugin Contributions
    0

    Default Re: Add to Cart text on the prodcut page

    I've looked at it on desktop, tablet and mobile and down by the quantity box, just before/outside the box where the quantity is now 1, it should have text - Add to Cart: but it doesn't. That's what's got me perplexed since I've checked just about everything I can think of. My other sites are fine, it's just this one and it happened after I moved the quantity box and add to cart button so I must have messed up something. I've replaced the code tpl_account_info.php file with the default from a fresh install and still no text.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 17 Mar 2010, 05:24 PM
  2. How to make quick view for the prodcut listing page
    By city1227 in forum General Questions
    Replies: 1
    Last Post: 30 Jun 2009, 05:19 PM
  3. how to add the add-to-cart-button to the new products box on the home page?
    By ebloger in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Nov 2008, 10:30 AM
  4. Swap over the 'add to cart' text/box and the 'add to cart' image
    By budfox in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Apr 2007, 11:24 PM
  5. can I add a text link on the shopping cart page
    By jdsmith8 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Nov 2006, 12:14 AM

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