rololo88 Posted February 23, 2009 Posted February 23, 2009 Hi all, I have a big problem, i successfully installed in admin panel but i have severals issues. First i have to upload a pdf manual for my product, is about 3.5mb, seems cannot upload it ( cannot transfert file error msg) Second, if i transfert a small pdf seems it's working but there's no link appear in my website :( Thanks for your help! :blush: Quote
AGO0575 Posted May 6, 2009 Posted May 6, 2009 Good evening! Is there a way to move the links for the pdf and other files outside of the box that contains the "reviews" and "add to cart" buttons? I'm able to upload, link and delte files accordingly but would just like to move the location of the link. Thanks in advance for any and all advice! Jeff My Osc is v2.2 RC2a. I use this contribution and is Ok. Very nice. You can see it in http://esteriplas.22web.net/product_info.p...products_id=326 I put it out of the box. The different code is in your catalogue/product_info.php: (you can put this code before de code for the box where is the "reviews" and "buy" buttons) ?> <tr> <td style="padding-left: 400pt;padding-right: 15pt;" class="smallText"> <table> <?php if ($product_info['products_pdfupload'] == '') { echo '<a href="' . tep_href_link('/manuals/'. $product_info['products_pdfupload']) . '"target="_blank">' . TEXT_CLICK_TO_PDFUPLOAD2 . '</a>'; } else { echo '<a href="' . tep_href_link('/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('/manuals/' . $product_info['products_fileupload']) . '"target="_blank">' . TEXT_CLICK_TO_FILEUPLOAD2 . '</a>'; } else { echo '<a href="' . tep_href_link('/manuals/' . $product_info['products_fileupload']) . '"target="_blank">' . TEXT_CLICK_TO_FILEUPLOAD . '</a>'; } ?> </table> </td> </tr> <?php To put text before or after the pdf image, you must go to the your catalogue/includes/language/english (or another language)/ product_info.php: define('TEXT_CLICK_TO_PDFUPLOAD', 'Product File <IMG STYLE="border: none;" SRC="images/pdf_1.gif" ALT="PDF Datasheet"><BR><BR>'); define('TEXT_CLICK_TO_PDFUPLOAD2', ''); define('TEXT_CLICK_TO_FILEUPLOAD', 'Product File <IMG STYLE="border: none;" SRC="images/pdf_1.gif" ALT="PDF Datasheet 2"><BR><BR>'); define('TEXT_CLICK_TO_FILEUPLOAD2', ''); Thats all. Hope I could help you. Alberto Quote
Bullseye Posted June 15, 2009 Posted June 15, 2009 How can i see the filenames listed in the admin Preview. Since we have to use Preview and Upload to ul the images, i'd like to display the filenames on the PREVIEW page. I assume it is like displaying the uploaded images from the extra images addon, but i can't seem to get it right. Anyone? Quote I never miss...
rselonke Posted June 18, 2009 Posted June 18, 2009 Hi all, I have installed the Add-on, and everything seems to work except the linking of the uploaded file to the product. When i go throught hte admin panel, the PDF files i select are uploaded to the server, but after i save the changes and go back into admin and edit the product again, the PDF fields are blank. If i look in the database table, the field for the PDF file (products_pdfupload) is empty. If i manually enter the filename of the PDF into the database products_pdfupload field it works great. All i can guess is that the admin/categories.php is not writing to the database. Any suggestions would be greatly appreciated! regards, Richard OSC: v2.2rc2a PROJECT: http://faculty-one.com/training/ WITH MANUAL DATABASE ENTRY: http://faculty-one.com/training/product_in.../products_id/48 WITH ADMIN ENTRY: http://faculty-one.com/training/product_in.../products_id/51 DISPLAYED IN ADMIN DISPLAYED IN SHOP Quote
Guest Posted June 30, 2009 Posted June 30, 2009 I have installed this contribution on 2.2a, and is not working with a clean RC2.2a. In the 2.2a "if (isset($_POST['products_image']) && tep_not_null($_POST['products_image']) && ($_POST['products_image'] != 'none')) { $sql_data_array['products_image'] = tep_db_prepare_input($_POST['products_image']); }" is " if (isset($HTTP_POST_VARS['products_image']) && tep_not_null($HTTP_POST_VARS['products_image']) && ($HTTP_POST_VARS['products_image'] != 'none')) { $sql_data_array['products_image'] = tep_db_prepare_input($HTTP_POST_VARS['products_image']); }" even if i made this corections - is still not working ... Quote
Dandon Posted February 19, 2010 Posted February 19, 2010 Hi all, I just installed this contribution which seems very useful, but I get following error when I try to edit a product: Parse error: syntax error, unexpected '}' in /web/htdocs/www.saivex.com/home/tienda/admintienda/categories.php on line 654 This would be caused by following change as per instructions (my line number is higher due to previous modifications): STEP 4.7 --> Also in: /admin/categories.php########################################### ==================================================================================== Look for this at around line 584: ==================================================================================== <tr> <td class="main"><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description; ?></td> </tr> <?php ==================================================================================== And directly underneath it add this: ==================================================================================== if($products_pdfupload_name != "") { ?> <td class="main"> <?php echo TEXT_PRODUCTS_PDFUPLOAD;?> PDF Uploaded</td> </tr> <?php } if($products_fileupload_name != "") { ?> <td class="main"> <?php echo TEXT_PRODUCTS_FILEUPLOAD;?> FILE Uploaded</td> </tr> <?php } It seems that the final "}" is causing the error, but I don't know enough PHP to know what to change. Can anybody help? TIA, Daniel Quote
simaster99 Posted July 13, 2010 Posted July 13, 2010 Hi all, This is a good conrtib and works well, the only real simple problem is the permission of the manuals folder. But I have found that the contrib does not work well with Header tag controller HeaderTags_SEO_V_3.2.3 and the SEO URL Ultimate_SEO_URLSv22d_9, If any one has a working categories.php with the above contribs installed could someone email or post it here. Kind regards simaster Sorry for the duplicate post Quote
simaster99 Posted July 15, 2010 Posted July 15, 2010 This has been added to the PDF Upload contrib downlaod. Hi all, This is a good conrtib and works well, the only real simple problem is the permission of the manuals folder. But I have found that the contrib does not work well with Header tag controller HeaderTags_SEO_V_3.2.3 and the SEO URL Ultimate_SEO_URLSv22d_9, If any one has a working categories.php with the above contribs installed could someone email or post it here. Kind regards simaster Sorry for the duplicate post Quote
Guest Posted August 10, 2010 Posted August 10, 2010 I've just installed the contribution (thank you!!:) ) but I've got two problems: - No pdf button is showing with the product - When I try and add the file in admin it browses to my PC, not to the manuals file I'm a bit stuck on how to fix this, any help would be appreciated. Quote
Guest Posted February 15, 2011 Posted February 15, 2011 HI all just a quick question will this contribution be updated for 2.3.1 :thumbsup: Its a great little add on i used it on RC2.2a and it worked great. Quote
Psytanium Posted March 7, 2014 Posted March 7, 2014 anyway to delete an already uploaded file ??? Quote
Psytanium Posted March 7, 2014 Posted March 7, 2014 anyway to delete an already uploaded file ??? I have done this by changing if (isset($HTTP_POST_VARS['products_pdfupload']) && tep_not_null($HTTP_POST_VARS['products_pdfupload']) && ($HTTP_POST_VARS['products_pdfupload'] != 'none')) { $sql_data_array['products_pdfupload'] = tep_db_prepare_input($HTTP_POST_VARS['products_pdfupload']); } to $sql_data_array['products_pdfupload'] = tep_db_prepare_input($HTTP_POST_VARS['products_pdfupload']); and change tep_draw_input_field('products_previous_pdfupload' to tep_draw_input_field('products_pdfupload' now to remove an uploaded file, just empty the upload text field. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.