osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Ask A Qusetion Contrib??

This is a discussion on Ask A Qusetion Contrib?? within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Tell me if I'm understanding this? I think if I follow the instructions I will lose my click to enlarge ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-11-2004, 12:45 PM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Kristine is an unknown quantity at this point
Default Ask A Qusetion Contrib??

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 ');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 04-11-2004, 08:41 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Default

1. The file you would be changing in MAX would be templates/content/product_info.tpl.php as MAX is based on an excellent template mod.
2. Removing those lines in 2 removes the javascript function to pop up a new resized window however the lines directly after that allow for a similar function/behaviour in non javascript enabled browsers: IE:
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . 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>'; ?>
</noscript>
If you leave that in - your pop up should still work although it may be in a larger - full sized window.
__________________
HTH
Neil
www.12website.com

"You can have everything in life that you want if you will just help enough other people get what they want."
Zig Ziglar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
installing GPG contrib kerrydax osCommerce 2.2 Modification Help 27 08-20-2006 01:01 PM
Multi Stores contrib in OsC Max-Is it possible? InaFlap osCMax v2 Customization/Mods 0 08-05-2006 03:11 PM
Linkpoint - Which contrib to use? Please help! giyer osCommerce 2.2 Modification Help 13 02-13-2006 09:14 AM
Ultimate SEO URLs v1.3 Contrib apexdog osCommerce 2.2 Modification Help 0 01-24-2005 09:25 AM
help with pwa contrib dmiles osCMax v1.7 Discussion 8 05-15-2004 02:50 PM


All times are GMT -8. The time now is 11:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax