web design, England, Britain, UK, belgium
 

VirtueMart 1.1 Product Reviews message when not logged in - Joomla & VirtueMart Tips & How To's

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.

Home Joomla VirtueMart Tips VirtueMart 1.1 Product Reviews message when not logged in

Sat

14

Nov

VirtueMart 1.1 Product Reviews message when not logged in
  • Joomla 1.5
  • VirtueMart 1.1

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".



VirtueMart 1.1 Product Reiews with JoomlaWorks Tabs 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...

VirtueMart 1.1 Product Reiews with JoomlaWorks Tabs
Last Updated on Saturday, 14 November 2009 18:05
 
VirtueMart
Your Cart is currently empty.

Latest Joomla & VirtueMart Tips

See all tips & examples



VirtueMart 1.1 Product Reviews message when not logged in|Joomla & VirtueMart Tips & How To's



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.


review, tab, product, leave, tabs, write, login, echo, blank, message, logged, like, virtuemart, change, look, normally, joomla, reviewform, phpshop, lang, template, flypage, joomlaworks, pages, separate, tell, user, open, better, using, adding

|

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set.
To find out more about the cookies we use and how to delete them, see our privacy policy.

I accept cookies from this site.