Sat 14 Nov |
|
If your using JoomlaWorks Tabs for your VirtueMart product pages and a separate tab for adding a product review, if your not logged in the tab is just blank. Here's how to leave a message like "You must be logged in to leave a review". A message to tell the user to login to leave a product review is much better than a blank tab. Open your flypage template and go to the review tab. It will normally look something like this: {tab=Write a Review} <?php echo $product_reviewform;?> {/tabs}Change this to: {tab=Write a Review} <?php if( $auth['user_id'] > 0 ) { echo $product_reviewform; }else{ echo $VM_LANG->_('PHPSHOP_REVIEW_LOGIN'); // Login to write a review! } ?> {/tabs} And that's it... |
Last Updated on Saturday, 14 November 2009 18:05 |