Stephen:
Is it possible to have 'Add to Cart' next to the product info, above the Tabs?
I have set the global to keep 'Add to Cart' out of the Tabs, but would like it above rather than below the Tabs.
You could do it the normal way you would edit the normal zc template.
On version 3.3 of Tabs Lite....
- Find and CUT line 623 - 677:
// #-- Start AddToCart Tab Check --#
if ($bAddToCart === false) {
?>
<!-- Added Table to prevent Add to Cart button from floating off the div-->
<table border="0" width="100%"><tr><td colspan="2">
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
// display the product atributes
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php');
}
?>
<!--eof Attributes Module -->
</td></tr><tr><td valign="bottom">
<!--bof Quantity Discounts table -->
<?php
if ($products_discount_type != 0) {
// display the products quantity discount
require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php');
}
?>
<!--eof Quantity Discounts table -->
<br />
</td><td valign="bottom">
<!--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
} // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
</td></tr></table>
<?php
} // @-- End AddToCart Tab Check --@
?>
-
Add <?php at line 153.
-
Pasted what you CUT above at 154, right under that <?php tag you added.
Now set Main image and Add to cart off the tabs and the add to cart stuff should be above the tabs
Ive attached the version I used to test this with: