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