
Originally Posted by
shocker
Again great mod. I'm getting my png problems sorted out so I can put this in my live site.
One thing I'd like to do is put the Tell a Friend and Product Notifications in the review tab.
Can you point me in the right direction to make this mod.
Not sure if you want to include it in the next release, but I'd like to implement this on my site to give it a more compact look but less clutter.
I try to refrain from making edits to, or changing any of the supporting Zen-cart files so that if they are updated in future versions, it should be completely transparent to TPP.
But it is quite easy at the template level for you to make those custom changes:
1. Edit tpl_product_display_info.php
2. Cut:
PHP Code:
<!--bof Tell a Friend button -->
<?php
if ($flag_show_product_info_tell_a_friend == 1) { ?>
<div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>
<?php
}
?>
<!--eof Tell a Friend button -->
3. Save that file
4. create a copy of template_default/templates/tpl_product_reviews_default.php into your template to create an override.
5. Edit the override file from your template templates directory. Near the end, before the final "</div>" Paste the stuff you cut from above. That will put the tell a friend button inside the template page that is called for the reviews tab.
Do the same for the product notification
Bookmarks