Upgraded to Zen-Cart 1.3 by Scott Wilson help@thatsoftwareguy.com

Originally Created by: Marg Davison marg@marg-art.com
Donations: Not required for the use of this add-on. Donate to Zen-Cart
Support:  Support is only given via the forums.
演示地址:http://www.100store.cn
17412718
06.09.25
========================================================

License:  Released under the GPL. 



Notes:

This module allows your customers to ask a question about a product with all of 
the specifics: model, product name, link to item. 

=========================================================

Modified Files:

includes\templates\template_default\templates\tpl_product_info_display.php

=========================================================

安装:
不用更改数据库
No database changes are required.   However, if you 
installed the pre-1.3 version of ask_a_question, the 
database entries from that version are no longer used.  

The unused database entries can be seen by going into Admin,
and then into Configuration->E-Mail Options.  You will see 

Allow Guest To Ask A Product Question  	...
Ask A Question Email To: 	...
Ask A Question Name To 	        ...

These entries may be deleted using the sql commands in cleanup.sql.  
Remember to prefix the table name "configuration" with your prefix if 
includes/configuration.php has DB_PREFIX set to something other
than ''.  

===========

Upload files.

===========

移动 includes\templates\template_default\templates\tpl_product_info_display.php
到你自己的模板目录下,  查找

  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>

在1.3.0.2以后的版本中你会看到

</ul>
<br class="clearBoth" />

改为: 

</ul>
<br />
<br />
<span id="productQuestions" class="biggerText">
<br />
<b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>
</span>
<br class="clearBoth" />

如果用按钮:
1,复制 button image 到 includes/templates/custom/buttons/english和 includes/templates/custom/buttons/schinese
(如果没有就建一个).

2,分别添加
define('BUTTON_IMAGE_ASK_A_QUESTION','button_ask_question.gif');
define('BUTTON_ASK_A_QUESTION_ALT', 'Ask a question'); 
和
define('BUTTON_IMAGE_ASK_A_QUESTION','button_ask_question.gif');
define('BUTTON_ASK_A_QUESTION_ALT', '点击填写内容');
于
 includes/languages/english/button_names.php 
 includes/languages/schinese/button_names.php 

3,上面的 tpl_product_info_display.php文件改动处如下: 

<div id="askQuestion" class="biggerText">
<?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id='
. $_GET['products_id']) . '">' .
zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) .
'</a>'; ?></div>
<br />
ASK_A_QUESTION
</a>
</div>
<br class="clearBoth" />
