-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
shocker
As far as I know it is usually a side box. :lookarounI searched and searched but I found no option to turn this on for product info even though it is product dependent.:unsure:
It looks like I got my PNg problem sorted out.:clap:
Ahh now i know what you are talking about. Its basically the same premise, copy the structure from the sidebox template file and paste it under the tell a friend section. Only difference is that you need to change the content = part to echo.
Try this:
PHP Code:
<?php
echo '<div style="width: 200px; float: left;">';
echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_BOX_NOTIFY_YES, OTHER_BOX_NOTIFY_YES_ALT) . '<br />' . sprintf(BOX_NOTIFICATIONS_NOTIFY, zen_get_products_name($_GET['products_id'])) .'</a>';
echo '</div>';
?>
You might want to play with the style for floating on different sides and stuff.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
This is sweet!
If you want to check it out
http://www.nahidfashions.com/test_bo...&products_id=6
:bigups: to you
thanks
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
shocker
The buttons are floating off the main tab area. If you are using version 1.02 be sure that you re-upload all of the tpp/css files (all 37 of them) as there were changes to the float property to fix the floating problem
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Hi,
We've installed this on our website in build. On each of the tabs at the bottom it says 0 Units In Stock.
How do we turn this off?
Thanks in advance!
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Hi all! I have read about 75% of this thread and I havent found an answer to my question yet...I hope I haven't overlooked it.
What I want to do is move the "Add To Cart" button up above the tabs, to the right of the image, title and price. I assume this isn't too hard to do...I tried adjusting it in tpl_product_info_display.php and it doesnt seem to be moving. Any help would be greatly appreciated! Thanks!
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
timkay
Hi,
We've installed this on our website in build. On each of the tabs at the bottom it says 0 Units In Stock.
How do we turn this off?
Thanks in advance!
Got a link? Are you sure it is on the tabs? or perhaps it is just under the tabs? It is one of the Product Details that is turned off in one of the admin configuration menus.
Quote:
Originally Posted by
dave_nextexit
What I want to do is move the "Add To Cart" button up above the tabs, to the right of the image, title and price. I assume this isn't too hard to do...I tried adjusting it in tpl_product_info_display.php and it doesnt seem to be moving. Any help would be greatly appreciated! Thanks!
Got a link? Assuming you have the global add to cart set to 0, then simply editing the tpl_product_info_display.php file should work fine. Many people, including my live site are doing it that way.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Thanks for the updated version, fixed the "extra" rectangle around the ATC button:clap:
I have added a custom field to my product layout. It is a simple text field. I'm hoping you can point me in the direction of calling that field onto a tab.
Thanks!
Audra
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
dave_nextexit
Hi all! I have read about 75% of this thread and I havent found an answer to my question yet...I hope I haven't overlooked it.
What I want to do is move the "Add To Cart" button up above the tabs, to the right of the image, title and price. I assume this isn't too hard to do...I tried adjusting it in tpl_product_info_display.php and it doesnt seem to be moving. Any help would be greatly appreciated! Thanks!
You should be able to move the Add to Cart very easily.
If you haven't done so already, be sure to copy the templates/template_default/tpl_product_info_display.php to your template override folder before making any changes to it.
Find the (around line 88 in the original Zen Cart 1.3.8)
Code:
<!--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 ?>
<!--eof Add to Cart Box-->
cut and past it after
Code:
<!--eof free ship icon -->
or play around with where you want it to go.
You can turn Add To Cart off in the TPP configuration
Hope this helps
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
The method shocker shows is correct, tho you could also just move the main tab block. The main code for the tabs to display are in the section (of your tpl_product_display_info.php file):
PHP Code:
<?php
//BOF :: Tabbed Products Pro ::
echo '<div id="tpptabBlock" style="display:none;">' . $tabData . '</div>';
//EOF :: Tabbed Products Pro ::
?>
So whatever you want above or below the tabs, you can move this snippet around the page until it is where you like it
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I want to do the same thing. I haved move the block of code for the tab display below the attributes as suggested. :cool:
But now how do I get the attributes to display at the right side of the image? I also want to put the [add to cart] button in the attribute box at the bottom (just below the last attribute). *And if the item doesn't have attributes, the add to cart will just display to the right of the image.
link: http://www.allk-9.com/test/service-d...html?cPath=128
Thanks!
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
shocker
You should be able to move the Add to Cart very easily.
If you haven't done so already, be sure to copy the templates/template_default/tpl_product_info_display.php to your template override folder before making any changes to it.
Find the (around line 88 in the original Zen Cart 1.3.8)
Code:
<!--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 ?>
<!--eof Add to Cart Box-->
cut and past it after
Code:
<!--eof free ship icon -->
or play around with where you want it to go.
You can turn Add To Cart off in the TPP configuration
Hope this helps
Thanks Shocker, I got it...I was editing the wrong tpl_product_info_display.php file (wrong location). One of those things I probably spent too much time on yesterday and came back to and got it right away. Thanks guys for your help!
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I've almost got it worked out. It doesn't display quite right... the box surrounding the attributes is cutoff on the right side. Anyone know how to fix that?
And I am getting the larger image link duplicated under my reviews tab??? Anyone know how to fix that???
Thanks.
Here is the code:
Code:
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_product_info_display.php 5369 2006-12-23 10:55:52Z drbyte $
*/
//require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
?>
<?php
//BOF :: Tabbed Products Pro ::
require(DIR_WS_MODULES . 'tabbed_products_pro.php');
//EOF :: Tabbed Products Pro ::
?>
<div class="centerColumn" id="productGeneral">
<!--bof Form start-->
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
<!--eof Form start-->
<?php if ($messageStack->size('product_info') > 0) echo $messageStack->output('product_info'); ?>
<!--bof Category Icon -->
<?php if ($module_show_categories != 0) {?>
<?php
/**
* display the category icons
*/
require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
<?php } ?>
<!--eof Category Icon -->
*/
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
}
?>
<!--eof Attributes Module -->
<!--bof Product description -->
<?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 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-->
</td></tr></table>
<!--bof Quantity Discounts table -->
<?php
if ($products_discount_type != 0) { ?>
<?php
require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
<?php
}
?>
<!--eof Quantity Discounts table -->
<!--bof Additional Product Images -->
<?php
/**
* display the products additional images
*/
require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
<!--eof Additional Product Images -->
<?php
//BOF :: Tabbed Products Pro ::
echo '<div id="tpptabBlock" style="display:none;">' . $tabData . '</div>';
//EOF :: Tabbed Products Pro ::
?>
<!--bof Prev/Next bottom position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 2 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
<br class="clearBoth" />
<?php
}
}
?>
<!--eof Reviews button and count -->
<!--bof Product date added/available-->
<?php
if ($products_date_available > date('Y-m-d H:i:s')) {
if ($flag_show_product_info_date_available == 1) {
?>
<?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
<!--eof also purchased products module-->
<!--bof Form close-->
</form>
<!--bof Form close-->
</div>
<?php
//BOF :: Tabbed Products Pro ::
echo $tabjscript;
//BOF :: Tabbed Products Pro ::
?>
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Ok that last bit of code was pretty messed up. Below is a better copy. And here is a link to temp page with problems:
http://www.allk-9.com/test/service-d...ness-p-71.html
1) I would like to move the "add to cart" inside the attributes box (just below the last attribute).
2) The tab/description area is too narrow, I would like that to expand across the middle.
3) I have the larger image link duplicated in the reviews tab. I would like to remove that.
Hope someone can help.
Thanks.
Here is a better copy:
Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=product_info.<br />
* Displays details of a typical product
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_product_info_display.php 3435 2006-04-14 03:42:46Z ajeh $
*/
//require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
?>
<?php
//BOF :: Tabbed Products Pro ::
require(DIR_WS_MODULES . 'tabbed_products_pro.php');
//EOF :: Tabbed Products Pro ::
?>
<div class="centerColumn" id="productGeneral">
<!--bof Form start-->
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
<!--eof Form start-->
<?php if ($messageStack->size('product_info') > 0) echo $messageStack->output('product_info'); ?>
<!--bof Category Icon -->
<?php if ($module_show_categories != 0) {?>
<?php
/**
* display the category icons
*/
require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
<?php } ?>
<!--eof Category Icon -->
<!--bof Prev/Next top position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 1 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next top position-->
<?php echo '<div id="leftFloat"' . ' style="width:' . (MEDIUM_IMAGE_WIDTH + 40) . 'px">'; ?>
<!--bof Main Product Image -->
<?php
if (zen_not_null($products_image)) {
?>
<?php
/**
* display the main product image
*/
require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
<?php
}
?>
<!--eof Main Product Image-->
<div id="friendReview">
<!--bof Tell a Friend button -->
<?php
if ($flag_show_product_info_tell_a_friend == 1) { ?>
<div id="productTellFriendLink"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>
<?php
}
?>
<!--eof Tell a Friend button -->
<!--bof Reviews button and count-->
<?php
if ($flag_show_product_info_reviews == 1) {
// if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
if ($reviews->fields['count'] > 0 ) { ?>
<div id="productReviewLink"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?><p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p></div>
<?php } else { ?>
<div id="productReviewLink"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
<?php
}
}
?></div>
<!--eof Reviews button and count -->
<br style="clear:left" />
<?php
//BOF :: Tabbed Products Pro ::
echo '<div id="tpptabBlock" style="display:none;">' . $tabData . '</div>';
//EOF :: Tabbed Products Pro ::
?>
<br class="clearBoth" />
</div> <!-- end of leftFloat -->
<div id="rightFloat">
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
<!--eof Product Name-->
<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?>
</h2>
<!--eof Product Price block -->
<!--bof free ship icon -->
<?php if(zen_get_product_is_always_free_shipping($products_id_current)) { ?>
<div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
<?php } ?>
<!--eof free ship icon -->
<!--bof Product details list -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList">
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<?php
}
?>
<!--eof Product details list -->
<br class="clearBoth" />
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
* display the product atributes
*/
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
}
?>
<!--eof Attributes Module -->
<!--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="2" />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '' . 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;
?>
<?php
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
</div> <!-- end of rightFloat -->
<!--bof Product description -->
<br class="clearBoth" />
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
<br class="clearBoth" />
<!--bof Quantity Discounts table -->
<?php
if ($products_discount_type != 0) { ?>
<?php
/**
* 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'); ?>
<?php
}
?>
<!--eof Quantity Discounts table -->
<!--bof Additional Product Images -->
<?php
/**
* display the products additional images
*/
require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
<!--eof Additional Product Images -->
<!--bof Prev/Next bottom position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 2 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next bottom position -->
<!--bof Product date added/available-->
<?php
if ($products_date_available > date('Y-m-d H:i:s')) {
if ($flag_show_product_info_date_available == 1) {
?>
<p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p>
<?php
}
} else {
if ($flag_show_product_info_date_added == 1) {
?>
<p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>
<?php
} // $flag_show_product_info_date_added
}
?>
<!--eof Product date added/available -->
<!--bof Product URL -->
<?php
if (zen_not_null($products_url)) {
if ($flag_show_product_info_url == 1) {
?>
<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php
} // $flag_show_product_info_url
}
?>
<!--eof Product URL -->
<!--bof also purchased products module-->
<?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
<!--eof also purchased products module-->
<!--bof Form close-->
</form>
<!--bof Form close-->
</div>
<?php
//BOF :: Tabbed Products Pro ::
echo $tabjscript;
//BOF :: Tabbed Products Pro ::
?>
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
gsdcypher
Ok that last bit of code was pretty messed up. Below is a better copy. And here is a link to temp page with problems:
http://www.allk-9.com/test/service-d...ness-p-71.html
1) I would like to move the "add to cart" inside the attributes box (just below the last attribute).
This can't really be done the way you have it. As the attribs module is a different module than the add to cart module. Zen-cart is modular. You need to remove the border around the attrib box, and then wrap the attrib and add to cart stuff in another div and put the box around that.
Quote:
Originally Posted by
gsdcypher
2) The tab/description area is too narrow, I would like that to expand across the middle.
Try the new version v1.02 from a few days ago. You can get it here
Quote:
Originally Posted by
gsdcypher
3) I have the larger image link duplicated in the reviews tab. I would like to remove that.
Not sure why you have that. Tho perhaps the new TPP will fix that.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I think my post got buried, so I'm going to ask again. I apologize if I'm being presumptive.
I have added a custom field to my product layout, called product_size
It is a simple text field. I would like to include it on the tabs, but I'm not sure how to identify and call it onto a tab. I wouldn't mind wrapping it into the product details if that were the easiest way to handle it, but I'm not sure how to do that either:blush:
Any thoughts to get me started?
Audra
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
audradh
I wouldn't mind wrapping it into the product details if that were the easiest way to handle it, but I'm not sure how to do that either:blush:
Any thoughts to get me started?
Audra
That would be the easiest way. Unfortunately zen-cart didn't make the Product Details into its own module, so I had to clone the raw code in TPP. You will need to edit /includes/modules/tabbed_products_pro.php file and find
Code:
$fmtDOT .= '</ul>';
Before that code, you can add your product size there. Follow the pattern of the other details there.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
qhome,
Thanks for the replies. Your newest version 1.02 seems to have fixed everything. Very cool.
Thanks.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
qhome,
Could you elaborate just a bit more on this?
Quote:
This can't really be done the way you have it. As the attribs module is a different module than the add to cart module. Zen-cart is modular. You need to remove the border around the attrib box, and then wrap the attrib and add to cart stuff in another div and put the box around that.
I have the add to cart button displayed under the attributes (which is the main thing I wanted do do). But now how would I align the add to cart quantity and button to the left? I tried wrapping the add to cart section on tpl_product_info_display in a div align left, but that didn't have any effect.
Thanks.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
gsdcypher
qhome,
Could you elaborate just a bit more on this?
I have the add to cart button displayed under the attributes (which is the main thing I wanted do do). But now how would I align the add to cart quantity and button to the left? I tried wrapping the add to cart section on tpl_product_info_display in a div align left, but that didn't have any effect.
Thanks.
The add to cart css code has it set to "float:right" You'd need to change that to "float:left" to start I think.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Hello
How to add "Product notifications" logo to review tab?
thank you
Zafer
[email protected]
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Qhome,
I'm sorry if this has been asked, I didn't find it. Is it possible to put the main product image on a tab WITHOUT the title and price?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
@audrah. Did my reply above about adding it to the "fmtdot" section work for you?
Quote:
Originally Posted by
zafer
Hello
How to add "Product notifications" logo to review tab?
thank you
Zafer
[email protected]
See here
Quote:
Originally Posted by
tstamplis
Qhome,
I'm sorry if this has been asked, I didn't find it. Is it possible to put the main product image on a tab WITHOUT the title and price?
So you want the title and price outside of the tabs, but the image on the tab?
Edit the includes/modules/tabbed_products_pro.php file
and find (around line 354):
Code:
$fmtMainIm .= '<h1 id="productName" class="productGeneral">' . $products_name . '</h1>'; // Product Name
$fmtMainIm .= '<h2 id="productPrices" class="productGeneral">';
change to:
Code:
//$fmtMainIm .= '<h1 id="productName" class="productGeneral">' . $products_name . '</h1>'; // Product Name
//$fmtMainIm .= '<h2 id="productPrices" class="productGeneral">';
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
This mod looks great. I really like it.
I'm wondering if you have a site anywhere that has all the different CSS styles loaded so that I can check out the ones you have already created without having to do a ton of FTP'ing.
Thanks,
lindasdd
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
lindasdd
This mod looks great. I really like it.
I'm wondering if you have a site anywhere that has all the different CSS styles loaded so that I can check out the ones you have already created without having to do a ton of FTP'ing.
Thanks,
lindasdd
DEMO
Tho the tabswitcher doesn't seem to work right with IE yet. (tabs 3 - 9 are the same in IE). So use FF or Opera. But the tabs themselves work fine in all browsers
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
qhome
Ahh now i know what you are talking about. Its basically the same premise, copy the structure from the sidebox template file and paste it under the tell a friend section. Only difference is that you need to change the content = part to echo.
Try this:
PHP Code:
<?php
echo '<div style="width: 200px; float: left;">';
echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_BOX_NOTIFY_YES, OTHER_BOX_NOTIFY_YES_ALT) . '<br />' . sprintf(BOX_NOTIFICATIONS_NOTIFY, zen_get_products_name($_GET['products_id'])) .'</a>';
echo '</div>';
?>
You might want to play with the style for floating on different sides and stuff.
-----------------------------------------
Thank you for the help
Can you please indicate the file name to be edited and where located.
Zafer
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
zafer
-----------------------------------------
Thank you for the help
Can you please indicate the file name to be edited and where located.
Zafer
You can just paste the code above into the /includes/templates/YOURTEMPLATE/templates/tpl_product_reviews_default.php
right before the last </div> tag
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Hey Qhome, after reading every post in this thread I've gotta say great mod and thanks for all your work and dedication!
(shameless plug, "Ladies and Gentlemen, don't forget to tip your developers!)
Qhome, I would love to use this mod on my site, its sleek, lightweight and compact but it doesn't work with the custom template I've created. I think it's a conflict with with the CSS tab menu I'm using in the header. It does look great straight out of the box with the gloss_black template however.
You can play in my sandbox here if you want. Any ideas how I can get both tabs to peacefully coexist?
:cry:
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
toddo
Hey Qhome, after reading every post in this thread I've gotta say great mod and thanks for all your work and dedication!
(shameless plug, "Ladies and Gentlemen, don't forget to tip your developers!)
Qhome, I would love to use this mod on my site, its sleek, lightweight and compact but it doesn't work with the custom template I've created. I think it's a conflict with with the CSS tab menu I'm using in the header. It does look great straight out of the box with the gloss_black template however.
You can play in my sandbox
here if you want. Any ideas how I can get both tabs to peacefully coexist?
:cry:
Looking at your code and css, I don't foresee any conflicts with your existing tabs css... can you explain what doesn't work ?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Firstly, I like TPP a lot...just what I was looking for. Thanks qhome!
Now for my issue...(I've tried searching and reading for the past hour and can't find anything) so here goes...I'm new to zencart, css, php, etc and I I'm trying to add different images in different tabs.
For example, if I have image_01.jpg & image_02.jpg. How can I put image_01.jpg in Tab1 and image_02.jpg in Tab 2? As of right now, I can only make them show up together in the "Additional Images" tab or together as a sub tab.
Thank you in advance.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Hi qhome, when I uploaded the files using the current template in the sandbox (renaming your_template) I thought something had gone wrong as no tabs appeared.
I checked my code against the sample included in the mod, checked and rechecked the config settings but couldnt get anything to display. I then uploaded to the gloss_black template and there were those cool tabs! Being the geek I am I reupped all the files to my other template but still no tabs! I'm baffled! :frusty:
I'm running 1.38a with Sales Reports2.2rc1, Contact Us add subject, Ty Package tracker, Superorders 2.0,Credit Card sidebox, Easy Populate v1.2.5.4, Shopping Cart with checkout sidebox and Yahootree categories menu.
If you look at the source code for the page I see this in there <!--%Product Description%--> <!--#AddToCart#--> <!--#Reviews#--> <!--@EndTabs@-->
I'm going to go over the source code for each page with WinMerge and see what I can find.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
:oops: AHA! I found it qhome!
The sign should say Duh! not Oops! It seems that the tpl_product_info_display.php (which I previously modded) in my template/my_template/templates folder was not over written with your file. That would explain it.
Now all I have to do is move the add to cart button up to the top and change the tabs to suit my site and I should be good to go!
Thanks for your help.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
cache529
I'm trying to add different images in different tabs.
For example, if I have image_01.jpg & image_02.jpg. How can I put image_01.jpg in Tab1 and image_02.jpg in Tab 2? As of right now, I can only make them show up together in the "Additional Images" tab or together as a sub tab.
What do the images represent? Are they going to be the same image on all products or will they be different for each? What tab are you trying to get these on?
Quote:
Originally Posted by
toddo
:oops: AHA! I found it qhome!
It seems that the tpl_product_info_display.php (which I previously modded) in my template/my_template/templates folder was not over written with your file. That would explain it.
Glad you figured it out. If you have a lot of changes to your custom tpl_product_display_info file, you could also just add the TPP code to your custom file (see readme). There are only 3 snippets of code to add to it for tabs to work there too... but either way. Enjoy!
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
qhome
What do the images represent? Are they going to be the same image on all products or will they be different for each? What tab are you trying to get these on?
1) The images are additional images of the product for sell.
2) They are going to be different for each product in the store.
3) I'm trying to get the images to appear on different "custom" tabs. I'm using the following: <!--%tab_name%-->.
I hope there's an easy way...Thanks!
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
cache529
1) The images are additional images of the product for sell.
2) They are going to be different for each product in the store.
3) I'm trying to get the images to appear on different "custom" tabs. I'm using the following: <!--%tab_name%-->.
I hope there's an easy way...Thanks!
To put them on custom tabs should be easy from the product description area in the admin section.
Code:
This is some text that will go on the first tab which if GlobalProductDescription is set
<!--%CustomTab1%-->
This is some test for the next tab, which is a custom tab. I also have this image:
<img src="http://www.image.com/myimage1.jpg"/>
<!--%CustomTab2%-->
This is some test for the next tab, which is a custom tab. I also have this image:
<img src="http://www.image.com/myimage2.jpg"/>
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
qhome,
that worked like a charm...thanks for helping a newbie!:smile:
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Hi QHome,
Ok, I installed the last version available on the download page on ZC 1.3.8 and everything is working great except I only have links beside the main image instead of tabs. These links are working well but it looks like something is not working or do not load. I looked at all files, reinstalled 3 times, looked at the CSS files but didn't find the problem. I read the 34 pages and now I think my head will explose. In these pages, I saw the problem kbalona had and it looks similar except I do not use cross sell product. Any idea??
I don't have a lot of products entered and ZC in not completely done but you can follow this link to see what I'm talking about: http://www.rack-import.com/shop/inde...&products_id=2
By the way, I sent you an email about a special request. Please take a look at it when you'll have the time and let me know what you think.
Alex
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Things are sometime strange... You work on something for a day, trying to make it work, and it's when you get tired and ask for help that you find the solution. So, it's working now. Thanks for this amazing and very complete mods!!
Regards
Alex
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Glad you got it working. btw, i didn't get any email or pm... tho my PM box was full.. so i cleaned it out.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I'm having the same problem and on my site it really looks stupid without those selected. Has anyone fixed this issue yet, the default attribute not being selected?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
~UPDATE~
Quote:
* Fixed bug where default attribute radio buttons weren't checked on tabs.
* Files Modified:
o jscript/jscript_tpp.js
o doc/readme_tabbed.html
Only 1 file change from 1.02: /jscript/jscript_tpp.js
Available in the Download section (when authorized)
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
stempient
I'm having the same problem and on my site it really looks stupid without those selected. Has anyone fixed this issue yet, the default attribute not being selected?
The problem was about the CCS files. They was on the template_default directories while they needed to be in the in the classic directories. So if you have links instead of tabs, double check your CSS files.
QHome, I send you back my email. Thanks.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
YesNoMaybe
The problem was about the CCS files. They was on the template_default directories while they needed to be in the in the classic directories. So if you have links instead of tabs, double check your CSS files.
QHome, I send you back my email. Thanks.
I think he was having the problem with the default attribute not being selected which i fixed in the latest release.
Technically the css files should work from the template_default directory too but I think I didn't add that additional check to the code. I will mark that down for the next version.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Sorry for being vague but you were correct. I was referring to the default attributes not being checked. I installed your updated version and they still don't work. Was I supposed too remove something first or just overwrite the old files?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
stempient
Sorry for being vague but you were correct. I was referring to the default attributes not being checked. I installed your updated version and they still don't work. Was I supposed too remove something first or just overwrite the old files?
Just overwrite the jscript_tpp.js file.
What type of attribute is it? I think I had radio buttons in mind so I only handled radio button default checking
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
actually.. I just checked... the admins haven't authorized the new version yet so you have to wait for it. v1.03. Currently it is still 1.02
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Just to be sure, I verified that all attribs should have working default settings. You can see here
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Admins are sleeping in today. Taking too long to approve the new version. So I've attached it here.
Remember, if you are upgrading from v1.02, you only need the new jscrip_tpp.js file in the templates area. That's the only changed file.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I have to say that when I saw they haven't released the version I needed yet to make the default attributes work I got pretty excited. The one I've been waiting for is out now. I installed it over the other versions I've tried and it still doesn't work. Am I doing something wrong? Was I suppose to remove the other versions first?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
stempient
I have to say that when I saw they haven't released the version I needed yet to make the default attributes work I got pretty excited. The one I've been waiting for is out now. I installed it over the other versions I've tried and it still doesn't work. Am I doing something wrong? Was I suppose to remove the other versions first?
Got a link I can see? I have it working here
Should have been nothing but replace the jscript file. I assume you have the default options set correctly in the Attribute Controller.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Here's a link to a screenshot of my attribute settings. http://www.ttmstempien.com/Attributes.jpg
And a link to a product I have set up with tabs. Only the CPU attribute is a radio button at the moment.
http://www.ttmstempien.com/index.php...oducts_id=1635
I renamed the attributes tab to "Configure This System"
It didn't work before I renamed it either.
As you can see my products would look WAY better with radio buttons. I'm getting desprate, please help
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
It's very odd. The default options on your page work fine for me in Firefox. But when I look with IE6 & IE7, they did not.
On my demo site, The default attributes worked fine in all 3
I will do some more research on the IE nuances
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Nifty bit of info I found that relates to tabs.
If you add this code to your stylesheet_tpp.css file:
Code:
.tabcontent {
height: 300px;
overflow-y: auto;
}
You can set your tabs to be fixed height across the board and use scroll bars when necessary
Demo here
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Thanks for looking into this. I'm looking forward to seeing this work right on my site.
-
Remove Product Description Header
Greetings,
I wanted to know if there is a way to remove the header (e.g. Product Description) that appears under the tabs.
Thanks for any help.
Linda
-
Re: Remove Product Description Header
Quote:
Originally Posted by
maxim
Greetings,
I wanted to know if there is a way to remove the header (e.g. Product Description) that appears under the tabs.
Thanks for any help.
Linda
Readme :)
(hint: Configuration->TPP Config->TPP - Show Tab Headers : 0 )
-
Re: Remove Product Description Header
Dear qhome,
Thank you sooooo much for your help (and this contribution, of course!). Info here and in the PM worked like a charm!
With a toddler on hand, I only get naptime/bedtime to work, so I really appreciate the time you saved me.
Blessings and smooches! Linda:bigups:
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
All I did was install a new zen-cart 1.3.8a installed one product with attributes and installed tabbed products pro. Still doesn't work. What am I missing? Is there another mod I need too?
http://dominatorrigs.com/index.php?m...&products_id=1
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I replied to your PM but I will post the info here as well to see if there are others experiencing this too.
This is ONLY related to the auto-checking of the default attrib option. The tabs themselves work fine in all browsers
Firefox: Works
Opera: Works
Safari: Works
IE6: Doesn't work
IE7: Doesn't work
IE8 (beta1): works (but breaks lots of other stuff)
On my demo site it seems to work for all browsers, but on stempient's sites it doesn't like IE6&7.
I'm going to try another demo site and see if i can get it to work there.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
There's already IE8? IE7 is still so bugged so why do they release a new one?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
Berserker
There's already IE8? IE7 is still so bugged so why do they release a new one?
I think they gave up on IE7 cuz its still so far behind the times. IE8 is like IE7 with a few minor features on the UI, some on the engine.. but still doesn't compare to Firefox as far as proper display.. in fact it breaks the product_display_info page.
-
Changing "attributes" label to "Accessories"
Any idea how I can change the "attributes" label to "accessories"?
-
Re: Changing "attributes" label to "Accessories"
Quote:
Originally Posted by
Zaki
Any idea how I can change the "attributes" label to "accessories"?
includes/languages/english/extra_definitions/tabbed_products_pro.php
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Yes, of course. thanks a ton, qhome.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
We have a lot of reviews on products in our store. When clicking on the review tab it truncates the review.
Please tell me where I can change the value to allow for more characters in the review tab.
Thanks
Rick
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
disciple
We have a lot of reviews on products in our store. When clicking on the review tab it truncates the review.
Please tell me where I can change the value to allow for more characters in the review tab.
Thanks
Rick
This isn't really a TPP thing, its the normal zen-cart setting.
But you can find this in:
includes/modules/pages/reviews/header_php.php
and search for:
left(rd.reviews_text, 100)
Change the 100 to something greater.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Hi qhome,
Thanks for the direction. I changed the file, and included it in my custom directory and it did not work, I then tried changing the default file and still it did not change.
I know this is not your issue but might you have any ideas as to why this wouldn't work?
Thanks
Rick
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Whoops.. Sorry .. wrong file.
Try this:
includes/modules/pages/product_reviews/header_php.php
and search for:
left(rd.reviews_text, 100)
That worked for me.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Interested in adding tabs to things like shipping & return, contact us pages, like this site
http://www.accessoryseek.com/index.p...e=shippinginfo
Can we do this with this mod?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Just wondering if I could use this mod in this way:
I have a product with 15 attributes.
I need to allow the customer to choose from another 100 (but only if they choose a specific option which at this point is not a problem)
Would I, using your mod, be able to:
Tab 1 - regular 15 attributes
Tab 2 - the other 100+ attributes
Cheers in advance.
Oh ... and in IE7 your demo produces scroll bars in the mod area.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
teebo
Not with this mod, but it looks like they just added that to the code for that page. Tabs aren't too hard to make when hardcoding them on the page.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
bigbadboy
Just wondering if I could use this mod in this way:
I have a product with 15 attributes.
I need to allow the customer to choose from another 100 (but only if they choose a specific option which at this point is not a problem)
Would I, using your mod, be able to:
Tab 1 - regular 15 attributes
Tab 2 - the other 100+ attributes
Cheers in advance.
Can't really think of a good way to do what you are looking for. I don't modify any of the actual content, I simple display the existing stuff inside the tabs, which means I only reference the zen-cart attributes template/module to show the attribs. Sounds like what you are lookin for might be handled by the PC Configurator contrib with some minor modifications.
I guess You could also maybe use javascript to manipulate the display to make the attributes appear on different tabs.. but I dont think my jscript skills are good enough to do that.
Quote:
Originally Posted by
bigbadboy
Oh ... and in IE7 your demo produces scroll bars in the mod area.
This is a feature that I talked about above.. All browsers should show scroll bars in the tabs because I'm using a fixed height instead of the dynamic height. see all the fun to be had with TPP :P
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I have a question about Tab order. I have looked through the whole thread and haven't been able to find any information regarding changing the tab order.
I have my attributes tab titled Customize yours now and I would like it display as the last tab. I have played with all that I could think of but haven't been able to move them around.
Thanks in advanced.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
phantomxc
I have a question about Tab order. I have looked through the whole thread and haven't been able to find any information regarding changing the tab order.
I have my attributes tab titled Customize yours now and I would like it display as the last tab. I have played with all that I could think of but haven't been able to move them around.
Thanks in advanced.
Tab order has to be changed in the code, dynamic ordering is not yet supported. If you only want the attribs moved to the end I can PM you with a version that has that
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
That would be awesome, or if you plan on adding dynamic ordering any time soon, I can just wait for that. No real big rush :)
I am just worried that if I did get a custom page I would forget about it or not know how to change it when I did need to update.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
qhome
It's very odd. The default options on your page work fine for me in Firefox. But when I look with IE6 & IE7, they did not.
On my demo site, The default attributes worked fine in all 3
I will do some more research on the IE nuances
Have you fixed this yet?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Hi Q,
First things first, GREAT MOD, I love it. However I hate IE.
I wish I could dismiss the problem I am having by getting rid of IE, but potential customer use IE, so it's not that easy :)
Everything works and looks great in FF but when I click on a product within IE, I get the following error:
"Internet Explorer cannot open the internet site http://www.litepockets.com/chadwickh...der-p-378.html (html file changes depending on what products I click on)
Operation Aborted"
To duplicate the error I recommend going to a product on this page:
http://www.litepockets.com/gardendec...rs-c-6_43.html as I haven't tested all products.
I haven't seen this listed in the forum elsewhere, so I assume I did something wrong, or this mod is not compatible with others. Any support is appreciated!!! I should mention, I can fix the problem by using the default tpl_product_info_display.php file, but then I lose the tabs of course.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
According to IE7, the actual error is :
Code:
Webpage Script Errors
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iOpus-Web-Automation; .NET CLR 2.0.50727; InfoPath.2)
Timestamp: Wed, 7 May 2008 23:29:57 UTC
0.
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: http://www.litepockets.com/chadwickhoseholder-p-378.html
Unfortunately that isn't very helpful, but then looking at your page in Firebug on FF, it shows a problem in this function:
Code:
function domReady(init) {
53 /* for Mozilla */
54 if (document.addEventListener) {
55 document.addEventListener("DOMContentLoaded", init, false);
56 return;
57 }
58 /* for Internet Explorer */
59 /*@cc_on @*/
60 /*@if (@_win32)
61 document.write("<script id=__ie_onload defer><\/script>");
62 var script = document.getElementById("__ie_onload");
63 script.onreadystatechange = function() {
64 if (this.readyState == "complete") {
65 init(); // call the onload handler
66 }
67 };
68 return;
69 /*@end @*/
70 /* for Safari */
71 if (/WebKit/i.test(navigator.userAgent)) { // sniff
72 var _timer = setInterval(function() {
73 if (/loaded|complete/.test(document.readyState)) {
74 init(); // call the onload handler
75 }
76 }, 10);
77 return;
78 }
79 /* for other browsers */
80 window.onload = init;
81 return;
82}
83function isLinkExternal(link) {
84 var r = new RegExp('^https?://(?:www.)?'
85 + location.host.replace(/^www./, ''));
86 return !r.test(link);
87}
88domReady(
89 function() {
90 addListener(document, 'click',
91 function(e) {
92 var target = (window.event) ? e.srcElement : e.target;
93 while (target) {
94 if (target.href) break;
95 target = target.parentNode;
96 }
97 if (!target || !isLinkExternal(target.href))
98 return true;
99 var link = target.href;
100 link = '/outgoing/'
101 + link.replace(/:\/\//, '/')
102 .replace('/^mailto:/', 'mailto/');
103 // alert(link); return false; //тестирование
104 pageTracker._trackPageview(link);
105 }
106 );
107 //отслеживание дополнительных элементов
108 //addListener(document.getElementById('element-id'),
109 // 'click', function() { pageTracker._trackPageview('/element-id/'); });
110 }
111);
112</script>
and seeing all those funky characters might also be a cause.
All in all tho, this is not a TPP problem. Nothing related to TPP is anywhere near this error.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
? I'm very confused than. If I go back to using the original product info template file, all works well... I use tpp, it breaks...
Not quite sure what's up..
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
What other mods are you running that requires all the text I pasted above? looks like you are doing some crazy SEO URLS there... are there any errors at all when using the SEO without TPP product info page?
After looking at in Firefox, i see the Dom_ready function seems to execute when i change tabs, and the pageTracker._trackPageview(link); thing chokes. I'm not sure what this does or why it has a problem with the tabs.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Better yet, if I disable tabs in TPP Config it works... I think it's a compatibility problem with TPP. Anything you could recommend? It's nothing to do with the JS function you showed me.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Q,
pageTracker._trackPageview(link) is part of google analytics js.
As far as SEO, I turned off my SEO urls and and still had the problem.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I also tested removing the special characters from that JS and same outcome :(
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
what other mods do you have installed?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I'll try to install them on my demo site to see at what point it breaks.
To date, i know of no contrib incompatibilities with TPP. I tried to keep it as clean and cross-platform as possible with no actual code changes, only display manipulation. But maybe it has met its match.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Hey Q,
I figured it out. TPP and HoverBox 3 do not play well together. HOWEVER. If you turn HoverBox 3 off (in the config, don't have to uninstall) install TPP, and then turn HB3 on, you are good to go in IE & FF...
So, it works. Don't know if you want to write it in such a way it plays nice automatically or not, but might be worth mentioning in your read me now :)
You can see them HB3 and TPP in action here: www.litepockets.com
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Good find litepockets. Thanks!
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Is there a way to add an additional category in one of the tabs?
You might have, for example:
tab 1 - Main product
tab 2 - Product description
tab 3 - Attributes
tab 4 - Additional category
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Additional Category would just be a custom tab. You add that from within the product description for that product. See readme for more details. Custom tabs come right after Product Description tho.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
qhome > thanks for that. I'll install and test.
Installed exactly as required but now I have this error in the product info page:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, 0' at line 6
in:
[SELECT r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.reviews_rating, r.date_added, r.customers_name FROM reviews r, reviews_description rd WHERE r.products_id = 342 AND r.reviews_id = rd.reviews_id AND rd.languages_id = 1 and r.status = 1 ORDER BY r.reviews_id desc limit -0, 0]
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
(missed my 7 minutes!)
Update 2
BTW - I don't have/ not going to have any reviews on this site.
Plus I only get this error when I turn tabs on.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
bigbadboy
(missed my 7 minutes!)
Update 2
BTW - I don't have/ not going to have any reviews on this site.
Plus I only get this error when I turn tabs on.
disable the reviews tab. But if the reviews table exists it should still work as that is a default zen-cart core feature
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I installed as described, checked the config settings, turned off 'reviews' as I knew they wouldn't be needed, and then activated the contrib.
That's when I got the error.
Maybe I need to comment out everything to do with reviews?
One last thing (hopefully), what code would I use to have another category in one of the tabs?
<!--%Category ID=7%--> or something?
(sorry but I simply have no clue!!)
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Minor Update - v1.04
* Added more conditional logic from the preload section to cut down unnecessary queries
- Files Modified:
o modules/tabbed_products_pro.php
o doc/readme_tabbed.html
This was just a minor optimization change to prevent loading the preload stuff for tabs that weren't enabled. Simply replace the module file with the new one. There is no noticeable difference but should cut down on some extra queries.
It has been uploaded to the Download page. Awaiting authorization.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Is there a way to keep the product picture outside, above the tabs so it will always be showing no matter what tabs you choose?
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Sorry, Nevermind I got it. :)
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
:) I thought that was how I set the default :P
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I have installed this mod, and it seems to be working besides i dont have your nice buttons like you do on your demo site. I have just a bulleted list of the options..
take a look.. if you can
http://regalogratis.net/index.php?ma...&products_id=4
I dont think i did anything wrong installed it as your doc says.
thanks
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
^^
You need to upload the stylesheet folders in the template directory.
-
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
I have the following problems:
1. Advanced X-SELL works but not on a Tab:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MAX_DISPLAY_XSELL' at line 8
when tab is switched to off it works.
2. Additional images: When they are not on a TAB they are displayed in the right way next to each other. When they ar on a TAB one underneath the other.
Are there any solutions for this problems?