
Originally Posted by
Woodymon
Anyone with specific recommends on how to put the Ask A question mod button on:
1. either it's own tab;
-or-
2. on a pre-existing tab (custom or global).
I was able to this in previous TPL versions but not the latest v.3.8 (running Zen Cart 1.36). Thanks.
Woody
To be it's own tab wouldn't be worthwhile since I can't load the form unless the user is logged in. So you would really only need the button. And I would think the most logical location of the button would be next to either the add to cart button, price, or near the product details area (model #, stock level, etc)
So if you are planning on having your add to cart button off the tabs, you could place it in the tpl_product_info_display.php file right above or below the <!--add to cart box --> zc tags in the code. Or you could add it above or below the <!-- Product Details box --> tags.
Or if you are using the add to cart button ON the tabs, you could add it above or below the <!-- add to cart box --> zc tags in the tpl_tabbed_products_lite.php file.
For the text-based version of the AAQ I would recommend putting it above the product details like this:
http://www.unbannable.com/zen/index....&products_id=2
If using the image version of AAQ, then I would put it directly under the Product details.
Keep in mind also that the original authors recommendations for the AAQ button were a tad limiting, as they assumed you would be using the product details area and the instructions actually integrate it into the Product Details. So if you weren't using the Product Details, you wouldn't see the AAQ button. A more preferred method would be to use the following code, and you can place it anywhere:
Code:
<!-- bof Ask A Question -->
<span id="productQuestions" class="biggerText">
<b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>
</span>
<!-- eof Ask A Question -->
Bookmarks