This part kind of works in zen-cart 1.3.8!
But it opens whole new tab in FireFox (don't know about IE).
Is there a solution just to open new mini window!
Thank you very much!
virtualahmad:
I got it working in 1.3.7 as follows:
The order_question.php which is in the root of the unzipped folder goes to the root of your store.
Made the following edit in tpl_account_history_info_default.php:
Line 127 - 137:
<!-- Start of Order Question Module -->
<?php
if (ALLOW_ORDER_QUESTION == 'true') {
// '<a href="' . . '" target="ask_question">' . zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT, 'onClick=javascript:window.open("' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '",
echo '<div class="order_history_question" style="text-align:center;"><br />' . TEXT_ORDER_QUESTION_LINK . '<br /><br />' .
zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT, 'onClick=\'javascript:window.open("' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '", "ask_question","toolbar=no,width=300,height=425")\' style="cursor:hand;"') .
'<br /></div>';
echo '<hr />';
}
?>
<!-- End of Order Question Module -->
>
> Changed to:
>
> ```
<!-- Start of Order Question Module -->
<?php
if (ALLOW_ORDER_QUESTION == 'true') {
echo '<div class="order_history_question" style="text-align:center;"><br />' . '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '" target="ask_question">' . zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT) . '</a><br /><br /></div>';
echo '<hr />';
}
?>
<!-- End of Order Question Module -->
Hope this helps out someone else.