Tell me if I'm understanding this? I think if I follow the instructions I will lose my click to enlarge and my pop-up window, see step 2 below??
Code:--------------------------------------------------- Only the OSC Milestone MS2 - update for MS1 Released 20th January 2004 mail : loic.richard1@free.fr http://www.bleu-lavande.com Allow now the Multilanguage Include an image Include the french language I have changed only the file Product_info.php, see the step 2. -------------------------------------------------- Contribution name: Ask a Product Question Released 11th January 2004 Released under the GNU General Public License Copyright (c) 2004 osCommerce by Marg Davison email: marg@marg-art.com url : http://www.marg-art.com ------------------------------------------------- Description: Customers often will not refer to a model number or a correct product name when asking about a product. This add-on will guarantee the correct product info and question are sent to the appropriate person. This is a modified "Tell a Friend", but works just fine for the above needs. ================= IMPORTANT ===================== FILES INCLUDED IN PACKAGE: /catalog/ask_a_question.php /catalog/includes/languages/english/ask_a_question.php FILES YOU HAVE TO PERFORM SOMETHING ON: /catalog/product_info.php /catalog/includes/filenames.php /catalog/includes/languages/english/ask_a_question.php BACKUP ALL CHANGED FILES BEFORE STARTING - I AM NOT RESPONSIBLE FOR ANY PROBLEMS CAUSED. ********-BACKUP FIRST-********* 1.) Upload files to their appropriate folders. 2.)/catalog/product_info.php ---- Find: <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> -------- Replace with: <tr> <td align="center" class="smalltext"> <?php // ################### Ask a question ############## ?> <img src="<?php tep_image ('button_ask_a_question.gif', IMAGE_BUTTON_ASK_A_QUESTION); ?>"> <a href="ask_a_question.php?products_id=<?php echo $product_info['products_id']; ?>" ONMOUSEOVER="window.status='.<?php echo TEXT_QUESTION ; ?> .' ; return true"> <?php echo TEXT_QUESTION ; ?> <b><?php echo $product_info['products_name']; ?></b></a> <?php // ################ end added ask a question ############ ?> 3.) Open /catalog/includes/filenames.php (or application_top.php) Add: define('FILENAME_ASK_QUESTION', 'ask_a_question.php'); Save 4.) /catalog/inlcudes/languages/english/product_info.php Add DEFINE('TEXT_QUESTION','Ask a question about ');





LinkBack URL
About LinkBacks






Bookmarks