Originally Posted by
Whot
Hi Frank,
I have the mod fully installed on a v1.5 site. However, I am running Tabbed Product Pro which it seems the conflict is on the product_info php template. If I revert just that 1 file to my unmodified file, the product listing shows up. If I leave it with the CSAR modifications, then the product page will not load. The TPP mod has a beginning php and and ending php so I tried to swap them around to see if one has to load first, but having the same issue. Any help would be appreciated if you have run TPP in the past.
Thanks Whot,
I am not familiar with TPP but just downloaded a copy of TPP 1.09 and compared the 2 files tpl_product_info_display.php (CSAR and TPP).
You may want to try this:
After merging the top of the TPP file looks like
Code:
<?php
//BOF :: Tabbed Products Pro ::
require(DIR_WS_MODULES . 'tabbed_products_pro.php');
//EOF :: Tabbed Products Pro ::
/**
* CATEGORY_RESTRICTION - find corresponding master category for the current product
*/
$products_id_to_block = $_GET['products_id'];
global $db;
$sql = "select master_categories_id from " . TABLE_PRODUCTS . " where products_id = :productID:";
$sql = $db->bindVars($sql, ':productID:', $products_id_to_block, 'integer');
$result = $db->Execute($sql);
/**
* CATEGORY_RESTRICTION - we are blocking direct access to a restricted product
*/
if (!$_SESSION['customer_id'] && !$_SESSION['customers_privileges'] > 0 && in_array($result->fields['master_categories_id'],explode(',', CATEGORY_RESTRICTION_LOGIN_CATEGORY)) ) {
// block access to this product
echo TEXT_ILLEGAL_ACCESS ;
} else { // bof CATEGORY_RESTRICTION - OPEN ACCESS
/**
* CATEGORY_RESTRICTION - we are hiding prices for specific categories only
*/
if (!$_SESSION['customer_id'] && in_array($result->fields['master_categories_id'],explode(',', CATEGORY_RESTRICTION_HIDEPRICE_CATEGORY)) ) {
$hideprice = 'true';
} else {
$hideprice = 'false';
}
?>
<div class="centerColumn" id="productGeneral">
And the bottom of the TPP file would look like
Code:
<!--bof Form close-->
<?php
} // eof CATEGORY_RESTRICTION - OPEN ACCESS
?>
</div>
<?php
//BOF :: Tabbed Products Pro ::
echo $tabjscript;
//BOF :: Tabbed Products Pro ::
?>
In the above 2 code blocks I have highlighted the corresponding opening { and closing } brackets for your reference.
Of course you still need to merge the code between these 2 blocks...
If this works as desired you may still have price display issues on the x-sell and reviews tabs - and may be on some others.
See how you go and post your findings - including corresponding debug logs if any.
Cheers / Frank
Bookmarks