News:

Support the VirtueMart project and become a member

Main Menu

Base Price

Started by michlt007, October 13, 2012, 21:04:08 PM

Previous topic - Next topic

michlt007

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?

Eugen S.

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
Send me a pm ;-)