Community Add-Ons
| Maintainers: | thadeus |
Print Preview 1.0
for osCommerce Online Merchant v2.2
Adds a link on index.php that can popup a page view as printable categories to your store.
Copyright:
osCommerce v2.2, Open Source E-Commerce Solutions
http://www.oscommerce.com
Title:
Print Preview 1.3
Example:
http://www.liderokulmarket.com/index2.php?cPath=39_40
Author:
Deniz DALDAL
What it does:
Adds a link on index.php that can popup a page view as printable categories to your store.
Install:
1. Upload the supplied files to their respective directories (when you unzip they will be in the correct directories for uploading):
indexp.php to /catalog/ (or equivalent)
/images/print.gif to /images/print.gif
2. open index.php
find
<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
add (You can add this anywhere before or after)
<div align="right">
<a href="indexp.php?cPath=<?php echo $cPath; ?>" onClick="MyWindow=window.open('indexp.php?cPath=<?php echo $cPath; ?>','ppvw_','toolbar=no,location=no,directories=no,stat us=no,menubar=no,scrollbars=yes,resizable=no,width =800,height=600'); return false;"><strong>Print Preview </strong></a> <img src="images/print.gif" width="20" height="23">
</div>
Costumize:
You can change values on this line ".... =yes,resizable=no,width =800,height=600'); retur ...."
3. Open includesfilenames.php
and add
define('FILENAME_PRODUCT_INFO_P', 'product_info_p.php');
define('FILENAME_PRODUCT_LISTING_P', 'product_listing_p.php');
