Qhome if you need an example you can view source on site in my signature. It definitely looks like Tabbed Products Pro is duplicating description as well as product image.
Printable View
Hi Qhome, thank you for reply!
No, I didnt resolve the problem, I mean that we have duplicate content( all information in tabbs) in sourse of page. The page of product looks good, but in sourse not.
I have deleted from tpl_product_info_display.php this code:
and now in source we have description only 1 time, and page looks good, but this way description do not available for spiders.PHP Code:
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
Please, can you help with this issue?
OK. the problem resolved by a_berezin
1. Please delete from tpl_product_info_display.php:
2. remove this code also:PHP Code:
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
3. Change this codePHP Code:
<!--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" class="">
<?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 -->
to this :PHP Code:
<?php
//BOF :: Tabbed Products Pro ::
echo '<div id="tpptabBlock" style="display:none;">' . $tabData . '</div>';
//EOF :: Tabbed Products Pro ::
?>
now we don't have duplicate content in sourse and also have w3c valid page, example:PHP Code:
<?php
//BOF :: Tabbed Products Pro ::
echo '<div id="tpptabBlock" style="display:block;">' . $tabData . '</div>';
//EOF :: Tabbed Products Pro ::
?>
http://validator.w3.org/check?uri=ht...Inline&group=0
Hmm... The javascript "magic" as it were is supposed to hide any other duplicates.
It works by:
Taking normal tpl
Adding tabbed stuff
Jscript finds duplicate ids and destroys them on the main
Then only the tabbed versions are there.
But I don't know what other changes were made that would break that.
It doesn't display the duplicates on the product pages, but if you view the source code of the product pages, you will see the suppressed duplicates. (I figured that was just how this mod worked.. didn't seem to harm anything, so I left it alone..) I didn't make any mods to my tpl other than what is suggested in the install instruct for this mod..
I've just installed this...and I love it...I too would like to know how to display the marketing offers, I have tried following the instructions and get the tab and the title but the content itself didn't appear...what I want to add as a tab is the Product Specials and Discounts bit on the bottom of this page: http://www.havendesignz.com/store/de...ories-page-kit
The code in the info display file that drives this is
Any help would be hugely appreciated :)PHP Code:
<?php
require($template->get_template_dir('/tpl_bigspender_marketing.php',DIR_WS_TEMPLATE,
$current_page_base,'templates'). '/tpl_bigspender_marketing.php');
?>
<?php
require($template->get_template_dir('/tpl_better_together_marketing.php',DIR_WS_TEMPLATE,
$current_page_base,'templates'). '/tpl_better_together_marketing.php');
?>
After getting some sleep and looking at this with somewhat fresh eyes LOL I managed to get this....for the person who was wanting to add the better together offers, follow the instructions included in docs/TPP - Adding Global Tabs.pdf
In the --TAB PRE-LOAD SECTION— (second) section where it says to add:
Add the following instead:PHP Code:
// Pre-load Warranty
$fmtShipEst = "\n" . '<div style="width:100%;">' . "\n";
$fmtShipEst .= "This is warranty information for our products. We want you to know that our products have a 100% guarantee."
$fmtShipEst .= "Thank you for shopping with us. If you have any questions, call us at 1-800-111-2222."
$fmtShipEst .= "\n" . '</div>'. "\n\n";
If you have other mods from That Software Guy in the marketing series add in the extra codes needed like this:PHP Code:
// Pre-load Specials
$fmtSpecials = "\n" . '<div style="width:100%;">' . "\n";
ob_start();
require($template->get_template_dir('/tpl_bigspender_marketing.php',DIR_WS_TEMPLATE,
$current_page_base,'templates'). '/tpl_bigspender_marketing.php');
$fmtSpecials .= ob_get_contents();
ob_end_clean();
$fmtSpecials .= "\n" . '</div>'. "\n\n";
Please note that I changed all instances of Warranty in the instructions to Specials, and fmtShipEst to fmtWarranty you will need to do the same with whatever word of your choosing lolPHP Code:
// Pre-load Specials
$fmtSpecials = "\n" . '<div style="width:100%;">' . "\n";
ob_start();
require($template->get_template_dir('/tpl_bigspender_marketing.php',DIR_WS_TEMPLATE,
$current_page_base,'templates'). '/tpl_bigspender_marketing.php');
require($template->get_template_dir('/tpl_better_together_marketing.php',DIR_WS_TEMPLATE,
$current_page_base,'templates'). '/tpl_better_together_marketing.php');
$fmtSpecials .= ob_get_contents();
ob_end_clean();
$fmtSpecials .= "\n" . '</div>'. "\n\n";
Oh and you'll need to remove the code added to the tpl_product_info_display.php so that you don't have the offers displaying twice lol
I have a question...lol
I currently have all my designers individual terms of use in ez pages displayed in a drop down box on the right, I would like to have these displayed as a tab on the actual product too....I know I can go in and edit each product one by one and add custom tags and the TOU information...mind you I am not sure I have grasped it correctly lol, but if anyone changes their terms this would be time consuming to change...is there a way I can get it to display the text already in each ez page instead?
I.E. instead of
Example:
<!--%Product Description%-->
The name of this tab is "Product Description". This is the text on the product description tab.
<!--%TOU%-->
Type terms in here
have it as
Example:
<!--%Product Description%-->
The name of this tab is "Product Description". This is the text on the product description tab.
<!--%TOU%-->
Include specific EZ Page content
Is this possible?