Forums / Templates, Stylesheets, Page Layout / Add to Cart option won't appear

Add to Cart option won't appear

Locked

Views: 1,164

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
6 Mar 2009, 10:09 PM
#1
legend38 avatar

legend38

New Zenner

Join Date:
Mar 2009
Posts:
5
Plugin Contributions:
0

Add to Cart option won't appear

Zen Cart 1.3.8a
Database Patch Level: 1.3.8

I have looked in the FAQ and found some threads on this subject, however none of those solutions helped me out.

I can't seem to get my "add to cart" button to appear on my products
http://signgold.com/shop/index.php?main_page=products_new

I have attached screenshots of my admin settings. Does anyone see an obvious error?

If I missed anything that you need to see, please let me know.

Huge screenshots removed

the products are "in stock".. I can't seem to figure this out.

6 Mar 2009, 10:44 PM
#2
legend38 avatar

legend38

New Zenner

Join Date:
Mar 2009
Posts:
5
Plugin Contributions:
0

Re: Add to Cart option won't appear

Interestingly enough if i change the template to a free one, the add to cart option appears

6 Mar 2009, 11:08 PM
#3
legend38 avatar

legend38

New Zenner

Join Date:
Mar 2009
Posts:
5
Plugin Contributions:
0

Re: Add to Cart option won't appear

Also there is no code between:

<!--bof Add to Cart Box --> <!--eof Add to Cart Box-->
6 Mar 2009, 11:16 PM
#4
legend38 avatar

legend38

New Zenner

Join Date:
Mar 2009
Posts:
5
Plugin Contributions:
0

Re: Add to Cart option won't appear

weird. i went into the file

tpl_product_info_display.php

and looked for that code. for some reason it was commented out

<?php if ($products_description != '') { ?> <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div> <?php } ?> <!--eof Product description --> <br class="clearBoth" /> <!--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 */?>

really weird. i never touched that file or any file for that matter.

7 Mar 2009, 4:36 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add to Cart option won't appear

Spooky ... :blink:

Thanks for the update on what was causing this issue ... :smile:

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

9 Mar 2009, 10:46 PM
#6
legend38 avatar

legend38

New Zenner

Join Date:
Mar 2009
Posts:
5
Plugin Contributions:
0

Re: Add to Cart option won't appear

no problem. i don't see why they would commment that portion out. It's essentially the back bone of the software, having the ability to purchase things online. lol.

16 Mar 2009, 1:35 PM
#7
hawkfire avatar

hawkfire

New Zenner

Join Date:
Jan 2005
Posts:
26
Plugin Contributions:
0

Re: Add to Cart option won't appear

Have the same issue, same scenario as the original topic poster, trying to find a valid working solution for this. Where should I look? When I go to the default template, it shows up but when I go to the customed template, it is missing.

16 Mar 2009, 3:21 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add to Cart option won't appear

It might be easier if we could peek at your site to see if we can see what is up ... :smile:

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

11 Apr 2009, 3:14 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add to Cart option won't appear

Check the settings for the:

Configuration ... Customer Details ...

Customer Shop Status - View Shop and Prices
Customer must be approved to shop
0= Not required
1= Must login to browse
2= May browse but no prices unless logged in
3= Showroom Only

It is recommended that Option 2 be used for the purposes of Spiders if you wish customers to login to see prices.

0
1
2
3

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