-
Re: Ask A Question
Re: Marg's contribution
I looked for it when I started working on this, which was only about a month ago, and didn't see it. I really can't speak to the question of its deletion; perhaps the mods can speak up.
As noted in the readme file, I ported this myself because I noticed it was missing from 1.3 and I enjoyed using it back in 1.27d.
Scott
-
Re: Ask A Question
There was no call up for the product in the HTML version of the email.
I ended up modifying /includes/modules/pages/ask_a_question/tpl_header_php.php and it all works fine now.
For anyone that is interested:
Replaced -
Code:
$html_msg['EMAIL_MESSAGE_HTML'] = strip_tags($_POST['enquiry']);
With -
Code:
$html_msg['EMAIL_MESSAGE_HTML'] = '<b>Product: </b><a href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['products_id']) . '">' . $product_info->fields['products_name'] . '</a><br />' . strip_tags($_POST['enquiry']);
-
Re: Ask A Question
I just uploaded a version with the fixes that have been suggested plus the button that was posted. It should be available in a few days after the mods approve it.
Scott
-
Re: Ask A Question
Would be nice to have the product image displayed as well.
Along with the product name, on the top of the mail form?
Cheers
Dimi
-
Re: Ask A Question
Please tell me where is problem ?
http://www.czbeads.eu/seed-bead-1005...ml?language=en
Im change tpl_product_info_display.php
but it look like alligned on the right side. I need it on the left side
ot I need put button (damn, how I can put this button - no info about it)
Pavel
-
Re: Ask A Question
Looks like you've got it. Nice!
-
Re: Ask A Question
Im add several <br /> codes and it help
-
Re: Ask A Question
Probably a better solution is to use
<br class="clearBoth" />
This way your alignment will still look good even if you swap out the graphic
you're using for another one with different dimensions.
Good luck,
Scott
-
Re: Ask A Question
No one has explained how to add the freakin button yet.
-
Re: Ask A Question
Assuming your template name is "custom":
a) copy the button image into includes/templates/custom/buttons/english
(create this directory if it doesn't exist).
b) create includes/languages/english/custom/button_names.php if you have not already done so,
from includes/languages/english/button_names.php
Add the lines
define('BUTTON_IMAGE_ASK_A_QUESTION','button_ask_question.gif');
define('BUTTON_ASK_A_QUESTION_ALT', 'Ask a question');
to this file.
Then, in tpl_product_info_display.php, your code would be:
<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" />
Good luck,
Scott