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.
Printable View
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.Quote:
Originally Posted by Stephen
On version 3.3 of Tabs Lite....
1. Find and CUT line 623 - 677:
2. Add <?php at line 153.Code:// #-- 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 --@
?>
3. 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:
I've successfully upgraded my production site to 1.3.5 and tabbed products lite still works perfectly with no changes needed.
thanks for the sending me how to do the tabs to the right of the rpoduct image. This is awesome, and works prefectly.
Thank you very much, it works, I just merged the file you provided, and the Add to Cart is up above the Tabs!Quote:
Originally Posted by qhome
Now I am trying to move "Ask a Question" mod to below the Tabs, next to 'Write a Review"
I guess that I should search for 'Write A Review' and paste the 'Ask A Question' call next to it?
Learning on the fly!
Here is the Ask a Question call:
<br />
<br />
<span id="productQuestions" class="biggerText">
<br />
<b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>
</span>
<br class="clearBoth" />
Has anyone added other mods to a Tablite tab?
For instance Write/Read A Review, Ask A Question, Tell a Friend.
I can see these mods' forms filled out within a Tab, so that the customer never leaves the product page, until they are ready to Add to Cart or move on.
I have read the Add your own Tab crosstab example, but I am not php dexterous enough without some help.
Yea those are planned to be in the next release of this contrib. I am trying to do it with ajax, however there may be some paradoxial snafu's with doing it like that.Quote:
Originally Posted by Stephen
Hi,
I think it is a great contribution and it works well on 1.3.5..
But I miss the language files for the Hardcode-Tabs. They are only in english, I need two languages and so I can't use the the Hardcode-Tabs and must enter them in the productdescription. English is only the second language I use, main language is german.
Is it possible to switch the language like the shop do?
Michael
Yes that will be in the next version.Quote:
Originally Posted by michaelhl
As I mentioned before , I have the same problem with two languages for the Hardcore-Tabs. I'm waiting also for the next version.
:lookaroun :lookaroun