Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shadowbox For Product_Info.php


desiredin

Recommended Posts

First i changed the shadowbox.css file in /catalog/src/css

shadowbox_title and changed the overflow from hidden to visible this makes the text over run the size of the picture.

 

Then in /catalog/product_info.php

text added in red

 

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

document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="shadowbox;height=200;width=200" title="'.addslashes($product_info['products_name']).'" >' . 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>'; ?>');

Edited by scorp
Link to comment
Share on other sites

  • Replies 108
  • Created
  • Last Reply

Top Posters In This Topic

I think at the first attemped i edited the wrong piece of code in the page(it had been a long night im sure you've all had a moment like this).

 

The next issue i have come across is broswer compatibility with video.

I have my cousin in japan that tested the video link that i put up on my site he users Safari browser on a Mac he stated that when he first clicked the link the video ran but there was no sound. The next time he clicked it worked with sound, i just wanted to let people know. Its most likly that this is down to the file format being a .wmv file and not a .wma file i just wanted to see what happend with other video formats. .

I will only send a link to view this privately as the site isnt finished yet and testing is still taking place.

Link to comment
Share on other sites

Noticed in your source, you had a second " after wmv. Doesn't appear it should be there, but it didn't seem to make a difference as everything loaded.

Sorted now there was'nt any Alt tag in the call.

 

<p align="center"><a class="option" title="THIS IS A TEST VIDEO" rel="shadowbox;width=320;height=240" href="/video/Dol.wmv"><img alt="Tester" border="0" src="/video/thumbnails/phone.gif" /></a></p>

 

before the alt look like this img alt=""

new

img alt="Tester"

Edited by scorp
Link to comment
Share on other sites

Not having the alt tag filled in is what produced the extra " if the alt is alt="" then the output is changed in href="/video/Dol.wmv""

 

if i fill in the alt="anything" then the change doesn't occur.

 

secondly the sound only works on the secound attempt when using ie7

Link to comment
Share on other sites

Another thing i have found is if a machine doesnt have java installed obviously its not going work,

does anyone know what code to use to warn the user to install java?

Edited by scorp
Link to comment
Share on other sites

secondly the sound only works on the secound attempt when using ie7

 

I haven't been experiencing that at all. Do you mean the first attempt per visit, or the first attempt on the very first visit to the site/very first attempt at downloding the video?

 

As for having Javascript disabled, I wouldn't worry about a warning message as it will just load without the Shadowbox. So your images will still come up and videos will still come up. Just in the standard way though.

 

But most people have it enabled these days. Very uncommom for it to be disabled with all of the media-rich content found on the majority of sites.

Link to comment
Share on other sites

Another thing i have found is if a machine doesnt have java installed obviously its not going work,

does anyone know what code to use to warn the user to install java?

Im not sure if it is the java now, when i run the video page or any product product page on server2003 with ie7 i get a '); after click to enlarge

 

shows up as click to enlarge');

and the code doesnt start so the picture open in another window - the shadowbox.

Edited by scorp
Link to comment
Share on other sites

Just uploaded a brand-new video so it wouldn't be saved in my cache (in case there was a download issue for the video), and I'm getting audio right off the bat. Can't explain why it isn't working for you.

 

As for the extra ');, seems to be coming from the code when Active Scripting / Javascript is disabled. Doesn't seem to affect function however. But I'll see if I can see why it is doing that. As I mentioned in the install doc, it's Tractormad's code (beyond my own skills) but I'll do what I can. Heh.

Link to comment
Share on other sites

One the fourth instance of the code that calls the text to enlarge, delete "');" from the end and that will solve the problem.

 

I did notice however that the hover text for the product name with Javascript turned off still has the addslahes. So instead of You've Got Mail, you're getting You\'ve Got Mail.

 

So we need to remove those in the same line. So it looks like:

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="shadowbox" title="'. ($product_info['products_name']).'" >' . 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>'; ?>

 

Remember, fourth line that has "TEXT_CLICK_TO_ENLARGE" in it.

Link to comment
Share on other sites

Just uploaded a brand-new video so it wouldn't be saved in my cache (in case there was a download issue for the video), and I'm getting audio right off the bat. Can't explain why it isn't working for you.

 

As for the extra ');, seems to be coming from the code when Active Scripting / Javascript is disabled. Doesn't seem to affect function however. But I'll see if I can see why it is doing that. As I mentioned in the install doc, it's Tractormad's code (beyond my own skills) but I'll do what I can. Heh.

Thx for the update, i think your spot on with the Active Scripting / Javascript if its disabled, because it would be with ws2003 disabled on default install der me >_< .

Enabled it and it works fine and i recieved audio first time. Must be the mac my cuz is using, as ive allways got sound first time it was just an issue he pointed out to me he is in Japan after all. :rolleyes:

 

Anyways congrats to all that made this contribution possible im sure theirs more the script can do once working in osc.

Link to comment
Share on other sites

Anyways congrats to all that made this contribution possible im sure theirs more the script can do once working in osc.

I'm currently trying to make a Shadowbox login for OSC. Just needing to get the regular login script links to use onclick. Which I have no idea about. Heh. I want the shadowbox to close once you click the login or create account button so it opens in the parent (non shadowbox underneath the shadowbox popup) window.

 

This would work using the Shadowbox.close() function.

 

But I am having a hard time figuring out how to get it working with the tep_href link. May try hard-coding the form but not sure if the username/password will pass through. As it stands, with a modified login (stripped of headers and columns, etc) it works fine, but the parent page has to be manually refreshed, and the shadowbox manually closed.

 

If all else fails, I will try using someone else's work as an example. But there is currently little to go on as Shadowbox is so new.

 

I've asked the community for a little help in this thread:

http://www.oscommerce.com/forums/index.php?showtopic=299077

 

I would also like a Shopping Cart shadowbox to view the contents of the shopping cart, with a checkout button on there. So they can view shopping cart from anywhere, without actually having to leave their page.

Link to comment
Share on other sites

Here's a little something that may interest those of you whom are interested in the Shadowbox contribution...

There's a guy out there who has created code to allow transparent PNGs to work beautifully with browsers that do not support it. Should allow you to better stick with your theme of Shadowbox and transparencies.

http://koivi.com/ie-png-transparency/

 

His little php code works like magic. You basically wrap your files between his code to handle the output for browsers, and it will allow your transparent PNGs to be automatically rendered in a method other browsers will support.

 

You basically put his replacePngTags.php in your root directory, his spacer.png in your images directory, and wrap the contents of your php file with his php code.

 

Like this (for index.php):

<?php ob_start(); ?>

<?php (this is the first line of the origional index.php)

THIS IS THE ENTIRE CONTENTS BETWEEN THE FIRST AND LAST LINE

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> (this is the last line in your origional index.php)

<?php

include_once 'replacePngTags.php';

echo replacePngTags(ob_get_clean());

?>

 

Too easy eh?

You can see what I've started by viewing my index.php.

http://www.visceralmagic.com/index.php

 

I've removed the background of my tables to allow the background to show through. Also stuck my background in a <div> container on the page. I was using a different method for my background to have a gradient, that blended with the background. But plans have changed, and I haven't gotten around to changing it.

 

At any rate, I have used transparent PNGs for my 2 logo images. If you go to other pages not using the index.php, it will (for the time being) not show as I still have to edit those files with the "magic PNG" code. Heh. So much to do.......It never ends.......

Link to comment
Share on other sites

Still working on those other things. Actually singled out a very helpfull member of the community (Germ) with a PM asking for help with it. I still can't get it figured out (applying the ref to some tep_hrefs). Hopefully he'll have time though he probably has a ton of requests just like mine. Heh.

 

At any rate, for those of you who noticed that when the DOCTYPE has been specified STRICT, the tables are padded with extra space.... It's a table issue. IE doesn't have the problem as it doesn't follow proper rules.

 

I have found that by specifying

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

Instead of the other one, everything looks perfect . And Shadowbox appears to work fine too.

Tested IE7, Firefox, Safari, and Opera.

 

It apparantly was only supposed to work strict, but by changing it to XHTML, Shadowbox appears fully functional. More testing needs to be done as I change over all my DOCTYPES this week, and give everything a once-over. I'll keep everyone updated.

Link to comment
Share on other sites

Can you post your URL so I can see what the problem is?

 

I don't have the site online .. just doing from localhost. But isn't it just copy all files from your contribution over writing all the files. It should work then right? From what i can understand its not calling the shadowbox at all. Thats what it feels like anyways. And this from a fresh install of oscommerce v2.2a

Link to comment
Share on other sites

That is essentially all there is to it. And it's as uncomplicated as a contribution can get. All you're doing is calling the javascript in the page, and adding a relationship to the tag.

 

Do you have scripting disabled in your browser? If so, it will treat the link as a normal href.

 

Try this test html file. Just load it in your root directory.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Shadowbox Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="src/css/shadowbox.css">
<script type="text/javascript" src="src/js/lib/yui-utilities.js"></script>
<script type="text/javascript" src="src/js/adapter/shadowbox-yui.js"></script>
<script type="text/javascript" src="src/js/shadowbox.js"></script>
<script type="text/javascript">

window.onload = function(){

Shadowbox.init();
};
</script>

</head>

<body bgcolor="#FFFFFF" text="#000000">
<a rel="shadowbox" href="http://www.google.com">OPEN GOOGLE IN SHADOWBOX </a> 
</body>
</html>

Link to comment
Share on other sites

Bah. Speaking of root directory...... I don't have a catalog directory. I install my shops to the root directory of my website. And those were the files I put in the zip package.

 

Which means you probably have to add /catalog/ in front of the scripts and stylesheets on those files most likely. It never occured to me that some people install in that catalog directory. Heh.

Link to comment
Share on other sites

That is essentially all there is to it. And it's as uncomplicated as a contribution can get. All you're doing is calling the javascript in the page, and adding a relationship to the tag.

 

Do you have scripting disabled in your browser? If so, it will treat the link as a normal href.

 

Try this test html file. Just load it in your root directory.

<?php
/*
 $Id: product_info.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 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//EN" "http://www.w3.org/TR/html4/strict.dtd">
<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">
<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>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="src/css/shadowbox.css">
<script type="text/javascript" src="src/js/lib/yui-utilities.js"></script>
<script type="text/javascript" src="src/js/adapter/shadowbox-yui.js"></script>
<script type="text/javascript" src="src/js/shadowbox.js"></script>
<script type="text/javascript">

window.onload = function(){

   Shadowbox.init();
};
</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 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">
<?php
   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="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="shadowbox" title="'.addslashes(addslashes($product_info['products_name'])).'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes(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 . addslashes(addslashes($product_info['products_name'])) . '" target="_blank" rel="shadowbox" title="'.addslashes(addslashes($product_info['products_name'])).'" >' . 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>'; ?>');
</noscript>
*/ ?>
<script language="javascript"><!--
document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="shadowbox" title="'.addslashes($product_info['products_name']).'" >' . 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" rel="shadowbox" title="'.addslashes($product_info['products_name']).'" >' . 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>'; ?>');
</noscript>
             </td>
           </tr>
         </table>
<?php
   }
?>
         <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>
               <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>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </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'); ?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...