Jump to content
Sign in to follow this  
Beer Monster

[Contribution] Tabbed Product Pages

Recommended Posts

That's a different contribution entirely, the only similarity with this contribution is the tab pane control. Try contacting the author of that contribution. You may find him/her at the dutch forum.

 

:P I had no idea.

 

Do you know what he calls it? Do you know his user name?

 

Thanks.

 

Best, Ted

Share this post


Link to post
Share on other sites
:P I had no idea.

 

Do you know what he calls it? Do you know his user name?

 

Thanks.

 

Best, Ted

 

Here's the thread from the dutch support site. Obviously it's in dutch but most dutch people speak excellent english so I'm sure you could send a pm!

 

http://forums.oscommerce.nl/index.php?showtopic=5730


Light, in the absence of eyes, illuminates nothing.

Share this post


Link to post
Share on other sites

There are 2 places in the instructions (product_info.php) where Beer Monster says PASTE YOUR SCRIPT HERE, is it correct to paste the code in both PASTE YOUR SCRIPT HERE places??

 

<script language="javascript"><!--

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

//--></script>

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

 

 

I'm getting a Parse error: parse error, unexpected $

 

What could be wrong??

 

One more question, the code between the two PASTE YOUR SCRIPT HERE should all of it be there?

 

Thanks for any help!

Share this post


Link to post
Share on other sites
There are 2 places in the instructions (product_info.php) where Beer Monster says PASTE YOUR SCRIPT HERE, is it correct to paste the code in both PASTE YOUR SCRIPT HERE places??

I'm getting a Parse error: parse error, unexpected $

 

What could be wrong??

 

One more question, the code between the two PASTE YOUR SCRIPT HERE should all of it be there?

 

Thanks for any help!

 

Yes, the script should be copied to both places this is because the product image must show either in the tab pane OR if no tabs have been set up for a particular product then displayed as normal. I've written the instructions this way because there are so many ways that the product image may have been modified using a small, medium, large image contribution for instance.

 

As for your other problem, it's likely to be a minor syntax error, possibly a missing } or comma. pm me your product_info.php and I'll have a look at it!

 

Beer


Light, in the absence of eyes, illuminates nothing.

Share this post


Link to post
Share on other sites
As for your other problem, it's likely to be a minor syntax error, possibly a missing } or comma. pm me your product_info.php and I'll have a look at it!

 

I should say, you'll probably have to email it!


Light, in the absence of eyes, illuminates nothing.

Share this post


Link to post
Share on other sites
I should say, you'll probably have to email it!

 

Hi Beer Monster, I'have almost got it working, but I have a problem it pushes out my right column and the bottom navigation to the bottom of the page and I cannot manage to get it right? tried almost everything I could think of. Any suggestions here is mine produc_info.php code:

 

Thanks for any help this mod looks really great!

 

<?php
/*
$Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

require('includes/application_top.php');

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);


/*
$visitors_id = $HTTP_COOKIE_VARS['prod_view'];
tep_session_register('visitors_id');
if (isset($prod_view)) {
@tep_db_query("insert into recently_viewed_more (visitors_id, time) values ('" . $visitors_id . "', '" . time() . "')");
}
$dup_check = tep_db_query("select * from recently_viewed where visitors_id = '" . $visitors_id . "' and products_id = '" . $HTTP_GET_VARS['products_id'] . "'");
if(tep_db_num_rows($dup_check)) {
tep_db_query("update recently_viewed set time = '" . time() . "' where visitors_id = '" . $visitors_id . "' and products_id = '" . $HTTP_GET_VARS['products_id'] . "'");
} else {
tep_db_query("insert into recently_viewed (visitors_id, products_id, time) values ('" . $visitors_id . "', '" . $HTTP_GET_VARS['products_id'] . "', '" . time() . "')");
}

*/

$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
$product_check = tep_db_fetch_array($product_check_query);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<?php
// BOF: WebMakers.com Changed: Header Tag Controller v1.0
// Replaced by header_tags.php
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?> 
<title><?php echo TITLE ?></title>
<?php
}
// EOF: WebMakers.com Changed: Header Tag Controller v1.0
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<!-- Begin tab pane //-->
<script type="text/javascript" src="includes/tabs/webfxlayout.js"></script>
<link id="luna-tab-style-sheet" type="text/css" rel="stylesheet" href="includes/tabs/tabpane.css" />
<script type="text/javascript" src="includes/tabs/tabpane.js"></script>
<!-- End tab pane //-->
<script language="javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->



<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php
if ($product_check['total'] < 1) {
?>
<tr>
<td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
} else {
$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, p.products_weight, p.products_bundle from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");






$product_info = tep_db_fetch_array($product_info_query);

tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
$products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
$products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

if (tep_not_null($product_info['products_model'])) {
$products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';
} else {
$products_name = $product_info['products_name'];
}
?>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading" valign="top"><?php echo $products_name; ?></td>
<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main">
<!-- begin tab pane //-->
<?php
$product_description_string = $product_info['products_description'];
$tab_array = preg_match_all ("|<newtab>(.*)</newtab>|Us", $product_description_string, $matches, PREG_SET_ORDER); // <new_tab>

if ($tab_array){ ?>
<div class="tab-pane" id="tabpane1">

<script type="text/javascript">
tp = new WebFXTabPane(document.getElementById("tabpane1"));
</script>
<?php
for ($i=0, $n=sizeof($matches); $i<$n; $i++) {
$this_tab_name = preg_match_all ("|<tabname>(.*)</tabname>|Us", $matches[$i][1], $tabname, PREG_SET_ORDER);
if ($this_tab_name){
echo '<div class="tab-page" id="tabPage' . $i . '">' .
'<h2 class="tab">' . $tabname[0][1] . '</h2>' .
'<script type="text/javascript">tp.addTabPage(document.getElementById("tabPage' . $i . '"));</script>';

if (tep_not_null($product_info['products_image'])) {
?>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td width="100%">
<table border="0" cellspacing="0" cellpadding="2" align="right">
<tr>
<td align="center" class="boxText"> 



<script language="javascript"><!--
//document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br><img src="images/magnify.gif" width="48" height="11" border="0"></a>'; ?>');
//--></script>

<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br><img scr="images/magnify.gif" width="48" height="11" border="0"></a>'; ?>
</noscript>



<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], 
$product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
</td>
</tr>
</table>
<?php
}
if (preg_match_all ("|<tabpage>(.*)</tabpage>|Us", $matches[$i][1], $tabpage, PREG_SET_ORDER)){
require($tabpage[0][1]);
}elseif (preg_match_all ("|<tabtext>(.*)</tabtext>|Us", $matches[$i][1], $tabtext, PREG_SET_ORDER)){
echo '<div class="boxText">' . $tabtext[0][1] . '</div><br>';
}
echo '</tr></td>
</table></div>';
}
}
echo '</div>';
}else{
if (tep_not_null($product_info['products_image'])) {
?>
<table border="0" cellspacing="0" cellpadding="2" align="right">
<tr>
<td align="center" class="boxText">





<script language="javascript"><!--
//document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br><img src="images/magnify.gif" width="48" height="11" border="0"></a>'; ?>');
//--></script>

<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br><img scr="images/magnify.gif" width="48" height="11" border="0"></a>'; ?>
</noscript>

</td>
</tr>
</table>
<?php
}
?>
<!-- End Tab Pane //-->
<p><?php echo stripslashes($product_info['products_description']); ?></p>


<!-- start bundle At the beginning of Bundle Mod Addition 21.01.2005--> 
<?php if (tep_not_null($product_info['products_bundle'])) {
?>
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="dotrect">
<tr class="plainBox2">
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>

<td class="main" colspan="3">

<?php

if ($product_info['products_bundle'] == "yes") {
$products_bundle = $product_info['products_bundle'];

echo TEXT_PRODUCTS_BY_BUNDLE . "</td></tr>";
$bundle_query = tep_db_query(" SELECT pd.products_name, pb.*, p.products_bundle, p.products_id, p.products_price, p.products_image
FROM products p
INNER JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd
ON p.products_id=pd.products_id
INNER JOIN " . TABLE_PRODUCTS_BUNDLES . " pb
ON pb.subproduct_id=pd.products_id
WHERE pb.bundle_id = " . $HTTP_GET_VARS['products_id'] . " and language_id = '" . (int)$languages_id . "'");
while ($bundle_data = tep_db_fetch_array($bundle_query)) {
if ($bundle_data['products_bundle'] == "yes") {
// uncomment the following line to display subproduct qty
echo "<br>? <b>" . $bundle_data['subproduct_qty'] . " x " . $bundle_data['products_name'] . "</b>";
echo "<br>? <b> " . $bundle_data['products_name'] . "</b>";
$bundle_query_nested = tep_db_query(" SELECT pd.products_name, pb.*, p.products_bundle, p.products_id, p.products_price
FROM products p
INNER JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd
ON p.products_id=pd.products_id
INNER JOIN " . TABLE_PRODUCTS_BUNDLES . " pb
ON pb.subproduct_id=pd.products_id
WHERE pb.bundle_id = " . $bundle_data['products_id'] . " and language_id = '" . (int)$languages_id . "'");

/* $bundle_query_nested = tep_db_query("select pb.subproduct_id, pb.subproduct_qty, p.products_model, p.products_quantity, p.products_bundle, p.products_price, p.products_tax_class_id
from " . TABLE_PRODUCTS_BUNDLES . " pb
LEFT JOIN " . TABLE_PRODUCTS . " p
ON p.products_id=pb.subproduct_id
where pb.bundle_id = '" . $bundle_data['subproduct_id'] . "'"); */

while ($bundle_data_nested = tep_db_fetch_array($bundle_query_nested)) {
// uncomment the following line to display subproduct qty
echo "<br><i>?????" . $bundle_data_nested['subproduct_qty'] . " x " . $bundle_data_nested['products_name'] . "</i>";
echo "<br><i>?????" . $bundle_data_nested['products_name'] . "</i>";
$bundle_sum += $bundle_data_nested['products_price']*$bundle_data_nested['subproduct_qty'];
}
} else {
// uncomment the following line to display subproduct qty
echo "<tr></td><td class=main ><b>" . $bundle_data['subproduct_qty'] . " x " . $bundle_data['products_name'] . '</b>???</td><td align = right class=main><b>??' . $currencies->display_price($bundle_data['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . TEXT_PER_ITEM ."</b></td></tr>"; echo "<tr><td class=main valign=top>"; echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $bundle_data['products_id']) . '" target="_self">' . tep_image(DIR_WS_IMAGES . $bundle_data['products_image'], $bundle_data['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '</a></tr>';
// echo "<br>? <b> " . $bundle_data['products_name'] . "</b>";
$bundle_sum += $bundle_data['products_price']*$bundle_data['subproduct_qty'];
}
}
$bundle_saving = $bundle_sum - $product_info['products_price'];
$bundle_sum = $currencies->display_price($bundle_sum, tep_get_tax_rate($product_info['products_tax_class_id']));
$bundle_saving = $currencies->display_price($bundle_saving, tep_get_tax_rate($product_info['products_tax_class_id']));
// comment out the following line to hide the "saving" text
echo "<tr><td colspan=3 class=main align=right><br><p><b>" . TEXT_RATE_COSTS . '?' . $bundle_sum . '</b></td></tr><tr><td class=main colspan=3 align=right><font color="red"><b>' . TEXT_IT_SAVE . '?' . $bundle_saving . '</font></b>';
}

?>

</td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table>
<?php
}
?>
<!-- end bundle End of Bundle Mod Addition 21.01.2005-->



<?php
}
$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
$products_attributes = tep_db_fetch_array($products_attributes_query);
if ($products_attributes['total'] > 0) {
?>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td>
</tr>
<?php
$products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");
while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {
$products_options_array = array();


$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "' order by pa.attribute_sort");







while ($products_options = tep_db_fetch_array($products_options_query)) {
$products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);
if ($products_options['options_values_price'] != '0') {
$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
}
}

if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {
$selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];
} else {
$selected_attribute = false;
}
?>
<tr>
<td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
<td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
</td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
$reviews = tep_db_fetch_array($reviews_query);
if ($reviews['count'] > 0) {
?>
<tr>
<td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
}

if (tep_not_null($product_info['products_url'])) {
?>
<?php
}

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>


<?php
} else {
?>



<?php
}
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<p align="left"><span class="messageBox"><?php echo TITLE_QUANTITY; ?>

<input type="messagetext" name="quantity" value="1" maxlength="2" size="2">??? <?php echo TITLE_WEIGHT; ?>
<?php echo $product_info['products_weight'] . 'Kg'; ?><br><br></span>

</p><br>



<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="2"><?php echo tep_draw_separator('pixel_trans.gif', '2', '1'); ?></td>

<td align="left"><a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath); ?>"><?php echo tep_image_button('button_back.gif', IMAGE_BUTTON_BACK); ?></a></td>




<td class="main"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>






<td align="left" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td>


<td align="left" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . tep_image_button('varukorg.gif', IMAGE_BUTTON_VARUKORG) . '</a>'; ?></td>




<td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>





<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>



<tr>
<td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>









<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td>
<?php
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_also_purchased(3600);
} else {
include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
}
?>
</td>
</tr>
</table></form><? include(DIR_WS_MODULES . 'thumb_bar.php'); ?></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Share this post


Link to post
Share on other sites

Seems to work now, it was my deactivating of the small thumb and click here now that messed it up due to my own twinkering with the page lay-out. :blush:

 

Thanks!

Share this post


Link to post
Share on other sites

I just installed the contribution, and I've got a few bugs that maybe yall could help me with.

 

1) No tabs are present and each section is contained on the same page, layered in rows.

2) No word wrap. The text spans across the page.

3) I'm getting a double exposer effect with the thumbnail image and link.

 

Any ideas?

 

Also, I'd like to see if its possible to link pdf documents to be viewed in a tab.

 

Thanks!

Share this post


Link to post
Share on other sites
I just installed the contribution, and I've got a few bugs that maybe yall could help me with.

 

1) No tabs are present and each section is contained on the same page, layered in rows.

2) No word wrap. The text spans across the page.

3) I'm getting a double exposer effect with the thumbnail image and link.

 

Any ideas?

 

Also, I'd like to see if its possible to link pdf documents to be viewed in a tab.

 

Thanks!

 

Email me your product_info.php and I'll have a look!

 

I've no idea what you mean by "I'm getting a double exposer effect with the thumbnail image and link."


Light, in the absence of eyes, illuminates nothing.

Share this post


Link to post
Share on other sites
Email me your product_info.php and I'll have a look!

 

I've no idea what you mean by "I'm getting a double exposer effect with the thumbnail image and link."

 

 

Hallelujah!

 

I?ve got tabs! (Beer Monster, you?re a genius)

 

I on the other hand was not smart enough to...

 

1) Put the tabs folder in the includes directory (not the catalog directory)

2) To fix the text wrapping, find the <pre></pre> tags in product info.php and replace them with <p></p> tags.

3) And I?m willing to bet the double exposure image has something to do with my big image contribution? I?ll look into that.

 

Thanks for the help!

 

If I can?t fix the image problem I?ll send you a copy of my file.

 

Thanks for the help!

Share this post


Link to post
Share on other sites

Anyone brave enough to take a stab at this little bug?

 

I'm getting a double exposure effect on my product image and I can't figure it out. Any leads would be appreciated.

 

Here's the LINK...

 

And Here's my code...

 

<?php
/*
 $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

 $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
 $product_check = tep_db_fetch_array($product_check_query);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<!-- Begin tab pane //-->
<script type="text/javascript" src="includes/tabs/webfxlayout.js"></script>
<link id="luna-tab-style-sheet" type="text/css" rel="stylesheet" href="includes/tabs/tabpanewebfx.css" />
<script type="text/javascript" src="includes/tabs/tabpane.js"></script>
<!-- End tab pane //-->

<script language="javascript"><!--
function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php
 if ($product_check['total'] < 1) {
?>
  <tr>
	<td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
<?php
 } else {
$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_pdfupload, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
$product_info = tep_db_fetch_array($product_info_query);

tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
  $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

if (tep_not_null($product_info['products_model'])) {
  $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';
} else {
  $products_name = $product_info['products_name'];
}
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading" valign="top"><?php echo $products_name; ?></td>
		<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td class="main">
<!-- begin tab pane //-->
<?php
$product_description_string = $product_info['products_description'];
$tab_array = preg_match_all ("|<newtab>(.*)</newtab>|Us", $product_description_string, $matches, PREG_SET_ORDER); // <new_tab>

if ($tab_array){ ?>
<div class="tab-pane" id="tabpane1">

<script type="text/javascript">
tp = new WebFXTabPane(document.getElementById("tabpane1"));
</script>
<?php
for ($i=0, $n=sizeof($matches); $i<$n; $i++) {
$this_tab_name = preg_match_all ("|<tabname>(.*)</tabname>|Us", $matches[$i][1], $tabname, PREG_SET_ORDER);
if ($this_tab_name){
echo '<div class="tab-page" id="tabPage' . $i . '">' .
'<h2 class="tab">' . $tabname[0][1] . '</h2>' .
'<script type="text/javascript">tp.addTabPage(document.getElementById("tabPage' . $i . '"));</script>';

if (tep_not_null($product_info['products_image'])) {
?>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td width="100%">
<table border="0" cellspacing="0" cellpadding="2" align="right">
<tr>
<td align="center" class="smallText">


<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>


<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], 
$product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
</td>
</tr>
</table>
<?php
}
if (preg_match_all ("|<tabpage>(.*)</tabpage>|Us", $matches[$i][1], $tabpage, PREG_SET_ORDER)){
require($tabpage[0][1]);
}elseif (preg_match_all ("|<tabtext>(.*)</tabtext>|Us", $matches[$i][1], $tabtext, PREG_SET_ORDER)){
echo '<pre><div class="boxTextMain">' . $tabtext[0][1] . '</div></pre><br>';
}
echo '</tr></td>
</table></div>';
}
}
echo '</div>';
}else{
if (tep_not_null($product_info['products_image'])) {
?>
<table border="0" cellspacing="0" cellpadding="2" align="right">
<tr>
<td align="center" class="smallText">

<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>


</td>
</tr>
</table>
<?php
}
?>
<!-- End Tab Pane //-->
<p><?php echo stripslashes($product_info['products_description']); ?></p>
<?php
}
$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
$products_attributes = tep_db_fetch_array($products_attributes_query);
if ($products_attributes['total'] > 0) {
?>
	  <table border="0" cellspacing="0" cellpadding="2">
		<tr>
		  <td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td>
		</tr>
<?php
  $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");
  while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {
	$products_options_array = array();
	$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");
	while ($products_options = tep_db_fetch_array($products_options_query)) {
	  $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);
	  if ($products_options['options_values_price'] != '0') {
		$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
	  }
	}

	if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {
	  $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];
	} else {
	  $selected_attribute = false;
	}
?>
		<tr>
		  <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
		  <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td>
		</tr>
<?php
  }
?>
	  </table>
<?php
}
?>
	</td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
$reviews = tep_db_fetch_array($reviews_query);
if ($reviews['count'] > 0) {
?>
  <tr>
	<td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
}

if (tep_not_null($product_info['products_url'])) {
?>
  <tr>
	<td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
}

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>
  <tr>
	<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>
  </tr>
<?php
} else {
?>
  <tr>
	<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
  </tr>
<?php
}
?>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>
<!-- BEGIN EASY CALL FOR PRICE v1.0 -->
<?php
if ($product_info['products_price'] == CALL_FOR_PRICE_VALUE){
?>
	<td class="main" align="right"><a href="javascript:history.go(-1)"><?php echo tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>
<?php
} else {
?>
<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
<?php
}
?>
<!-- END EASY CALL FOR PRICE v1.0 -->
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
 <?php
 if ($product_info['products_pdfupload'] == '') {
 echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_pdfupload']) . '">' . TEXT_CLICK_TO_PDFUPLOAD2 . '</a>';
 } else {
 echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_pdfupload']) . '">' . TEXT_CLICK_TO_PDFUPLOAD . '</a>';
 }
 ?>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td>
<?php
if ((USE_CACHE == 'true') && empty($SID)) {
  echo tep_cache_also_purchased(3600);
} else {
  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
 }
?>
	</td>
  </tr>
</table></form></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Share this post


Link to post
Share on other sites

The link was bad. Here's the good one...

 

LINK

 

and I'll add I hate pasting all that ugly code, but I couldn't isolate my problem. :-"

Share this post


Link to post
Share on other sites

Hello, I try to place the table contening the tabs in the middle of my page. I deleted the right column, still the left one. But i don`t find how to do it ... some help :P :P :huh:

Share this post


Link to post
Share on other sites

Does anyone know if this tab system has a negative effect on search engine optimization?

It looks great for customers, but I'm just curious if it will mess with spiders.


Sam M. - Seattle

Share this post


Link to post
Share on other sites

For those that are interested, I got the external links to work and I fixed the double exposure. Just make sure your html code is clean, (which was my 1st problem) and I had to fix my modified code. Works great. Wonderful contribution!

 

NETSTEP: Dont know how this effects spiders wthin osC, but I've linked to existing external pages that link to my store. If the spiders dont find the store, I'm sure they'll find my static pages. So far so good...

Share this post


Link to post
Share on other sites

Hi Brian,

I am very interested in your contribution, but it looks weird after I installed it (straight install, I did not have any other modifications yet to product_info.php).

 

Tab #1 looks Ok. But Tab #2 does not have nice box around it. Al the tabs starting with tab #3 have their text displayed way down on the page instead of underneath the tab (and they still do not have nice box around them).

 

Any ideas on how to fix it?

 

I really appreciate the help.

Share this post


Link to post
Share on other sites
Hi Brian,

I am very interested in your contribution, but it looks weird after I installed it (straight install, I did not have any other modifications yet to product_info.php).

 

Tab #1 looks Ok. But Tab #2 does not have nice box around it. Al the tabs starting with tab #3 have their text displayed way down on the page instead of underneath the tab (and they still do not have nice box around them).

 

Any ideas on how to fix it?

 

I really appreciate the help.

 

1) When I had problems with the tabs not showing up correctly, it was because the html code wasn't clean. Make sure you have no errors in your code, and that all your tags are closed, especially if your working with tables.

 

2) To fix the text wrapping, find the <pre></pre> tags in product info.php and replace them with <p></p> tags.

Share this post


Link to post
Share on other sites

Hi everybody,

 

There is a repeated code in product_info.php that causes double imaging, one created by adding a contribution and another one is inserted by pasting an original script:

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

When I removed the repeated code, my image is showing just once.

 

Is there any way to add tabs into admin/categories.php so when previewing a product, description is showing in tabs? Did anybody tried it?

 

Thanks.

Share this post


Link to post
Share on other sites

I have no images in the tabs. The tabs folder is located in the includes directory and I see that there are png images in it, but they do not appear in the tabs.

 

I had an unmodified install so used the product_info.php included with the zip.

Share this post


Link to post
Share on other sites

I have sorted the tabs images issue, but I have noticed that when a product has attributes, they appear hidden behind the tab table.

 

Has anyone fixed this issue?

Edited by comclusive

Share this post


Link to post
Share on other sites

I am having a problem... this one line is messing up the page...

 

<div class="tab-pane" id="tabpane1">

 

 

I just get the standard white screen unless i remove this

 

 

<!-- begin tab pane //-->

<?php

$product_description_string = nl2br(stripslashes($product_info['products_description']));

$tab_array = preg_match_all ("|<newtab>(.*)</newtab>|Us", $product_description_string, $matches, PREG_SET_ORDER); // <new_tab>

 

if ($tab_array){ ?>

<div class="tab-pane" id="tabpane1">

 

<script type="text/javascript">

Share this post


Link to post
Share on other sites

Hi,

 

I just wanted to say thanks for the tabbed products contribution - I just added it to my store. It took some hacking to get it to work - I've changed the look of the product info page somewhat, and I finally got it in a very round about way (like being way too complex and then simplifying it). In the end, it was a pretty simple mod to the product info file.

 

I only have about 10 products right now that are currently using tabs, but its so flexible that I'm going to use the tabs for rebates, other specials, related products and possibly some other stuff as I add products to the site. It's really nice because the tabs don't show up unless the call to the js is present in the product description, so the untabbed products display as usual.

 

So, Beer Monster, thanks for the great contrib!

 

tony

Share this post


Link to post
Share on other sites
Hi,

 

I just wanted to say thanks for the tabbed products contribution - I just added it to my store. It took some hacking to get it to work - I've changed the look of the product info page somewhat, and I finally got it in a very round about way (like being way too complex and then simplifying it). In the end, it was a pretty simple mod to the product info file.

 

I only have about 10 products right now that are currently using tabs, but its so flexible that I'm going to use the tabs for rebates, other specials, related products and possibly some other stuff as I add products to the site. It's really nice because the tabs don't show up unless the call to the js is present in the product description, so the untabbed products display as usual.

 

So, Beer Monster, thanks for the great contrib!

 

tony

 

Taster, any way you can provide a linke .. or a snapshot, Im interested to see what it "looks" like

 

or you can pm me, if you worried about privacy. thanks so much

 

ZA

Share this post


Link to post
Share on other sites

Hi

 

Just installed the contrib and all is OK but does anyone know how to change the colours of the tabs and border from blue. Also the vertical scroll bar in IE changes to the same colour of blue.

 

I have edited the tab png files in Paintshop Pro and changed the border to be red but nothing changes when I re-upload the images.

 

TIA

 

Ian

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×