Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Please help my add to cart button

Please help my add to cart button

Locked

Views: 576

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Mar 2010, 7:39 PM
#1
manni avatar

manni

New Zenner

Join Date:
Apr 2009
Posts:
12
Plugin Contributions:
0

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

25 Mar 2010, 7:50 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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:

<!--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-->

Look at the first CONDITIONAL:

if (CUSTOMERS_APPROVAL == 3 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

25 Mar 2010, 7:54 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Please help my add to cart button

Yet another that has been "duped" by Template Monster looks

25 Mar 2010, 7:58 PM
#4
manni avatar

manni

New Zenner

Join Date:
Apr 2009
Posts:
12
Plugin Contributions:
0

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.