VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: michlt007 on October 13, 2012, 21:04:08 PM

Title: Base Price
Post by: michlt007 on October 13, 2012, 21:04:08 PM
I'm wanting to display the base price when users aren't logged in and have tried everything in the backend to make this happen with no luck would anyone have any ideas?
Title: Re: Base Price
Post by: Eugen S. on October 17, 2012, 11:16:07 AM
Hello ,

I don`t know any option to do this without modifying the code. This should be a customization task which takes 10-15 minutes for a developer.

A simple joomla php snippet to check if a user is logged in or not would be:


//i included joomla core  files
$user =& JFactory::getUser();

if ($user->get('guest')) {
     echo 'guest';
} else {
echo 'not guest';
}



So now you just need the line of code for the base price output and insert it within this snippet.



Sincerely,

Eugen Stranz