Community Add-Ons
| Maintainers: | Gasse1014life |
File Upload and Display_V2.01.69 for version V 2.3.x
for osCommerce Online Merchant v2.2
after one month of work i have finnally finnish the PDF and all file upload via admin for product_info page.
for version 2.3.x
i have reduce script at his more simple expression to ability of anyone to modify code and show it if not null anywhere it the catalog.
at this time i have only put a link in product info.php page to see the file who have been upload in admin ,
but it can be modify to be put in any code like flashvar or swf etc...
with this tag" $product_info['products_fileupload'] or $pInfo->products_pdfupload "
this add on have been test with 11 others addon install at the same time without any error, (SQL or Php)
if you have any question it will be a pleasure to help you to resolve your problem..
Legend:
Download
Report
put this code anywhere u want link to be appear
<?php
if ($product_info['products_pdfupload'] == '') {
// echo '<a href="' . tep_href_link(DIR_WS_MANUALS. $product_info['products_pdfupload']) . '"target="_blank">' . TEXT_CLICK_TO_PDFUPLOAD2 . '</a>';
} else {
echo '<a href="' . tep_href_link(DIR_WS_MANUALS . $product_info['products_pdfupload']) . '"target="_blank">' . TEXT_CLICK_TO_PDFUPLOAD . '</a>';
}
echo '<br>';
if ($product_info['products_fileupload'] == '') {
// echo '<a href="' . tep_href_link(DIR_WS_MANUALS . $product_info['products_fileupload']) . '"target="_blank">' . TEXT_CLICK_TO_FILEUPLOAD2 . '</a>';
} else {
echo '<a href="' . tep_href_link(DIR_WS_MANUALS . $product_info['products_fileupload']) . '"target="_blank">' . TEXT_CLICK_TO_FILEUPLOAD . '</a>';
}
?>
