Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2009
    Posts
    17
    Plugin Contributions
    0

    Default Please help my add to cart button

    Hi.
    After installing a new template from Template Monster.
    everything thing seem to be fine .
    But realised my add to cart button disappeared.

    I have read other post related to this issue but no luck.
    All the setting in my admin panel fine as they should be.,
    If i change it back to other template my add to cart button come s back.

    Can anyone please help!!!

    link to my site:
    http://mrdperformance.co.uk

    any help will be much appreciated.

    Thanks in advance

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

    Default Re: Please help my add to cart button

    Has TM not offered to assist you?

    Your page source says:

    <!--bof Add to Cart Box -->
    <!--eof Add to Cart Box-->

    for that section.

    The PHP for it is:

    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-->
    Look at the first CONDITIONAL:

    PHP Code:
    if (CUSTOMERS_APPROVAL == and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      
    // do nothing
    } else { 
    Have you checked your setting for Customer Approval Status, or perhaps your store status? (both in Admin Panel).

    If these work under a different template, then the template is at fault.

    Use WINMERGE to compare the TM file and the CORE file that have the name:

    tpl_product_info_display.php
    20 years a Zencart User

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Please help my add to cart button

    Yet another that has been "duped" by Template Monster looks
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Apr 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Please help my add to cart button

    Hi schoolboy,

    All sorted now.

    I have changed the PHP code.

    Thank you so much for your help.

    Really appreciated for all the help.





    Template monster kept on showing me a video no real help.

    Thanks again.

 

 

Similar Threads

  1. v151 Add to Cart Button not working - Please help!
    By SilverHD in forum General Questions
    Replies: 5
    Last Post: 13 Feb 2014, 12:30 PM
  2. Please Help! My add to cart button does not work
    By powerstar in forum General Questions
    Replies: 4
    Last Post: 23 Aug 2010, 02:06 AM
  3. Add to cart button please help!!
    By cla74 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 6 Oct 2009, 09:06 PM
  4. Problem with Buy Now\Add To Cart button! Help please
    By Vista13 in forum General Questions
    Replies: 3
    Last Post: 31 Aug 2009, 11:57 AM
  5. Add to cart Button is now Gone..please help
    By EvoPowerMods in forum Basic Configuration
    Replies: 0
    Last Post: 19 May 2008, 06:24 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