
Originally Posted by
BlessIsaacola
Qhome, finally installed this and I must say it's excellent. I was wondering what the easiest approach would be to achive this two goals:
1. Remove the "Tell A Friend" button from the product display page. It's redundant because I have the Tell A Friend sidebox on.
2. Move the Add to Cart button about the Tabs. Because most of our products have extensive description, the Add to Cart is buried too low on the screen. Besides, it will be customer friendly to have it on top for those customers that do not need to read description, they can easily add things to cart. I know you created a custom file for Stephen for version 3.3. Is that still available and applicable to v3.8.
Just trying to figure out the most efficient way to do this since I have to do it in 5templates for each product type.
Thanks!
Hi Blessisacola,
1. In Admin->Product Types->Edit Layout there is a setting called:
Show Product Tell a Friend button. Set that to 0 and it will turn it off on the page, but leave the sidebox one.
2. Assuming you will have the main image above the tabs too, then you can find: (around line 141)
Code:
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
$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);
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-->
cut that and paste it underneath:
Code:
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
<!--eof Product Name-->
Bookmarks