VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: resif on August 12, 2012, 11:09:08 AM

Title: i don't want to show login box in show chart page
Post by: resif on August 12, 2012, 11:09:08 AM
i don't want to show login box in show chart page because when i loggin still show login box...
how can i remove login box show chart page?
Title: Re: i don't want to show login box in show chart page
Post by: Setko on August 12, 2012, 12:15:40 PM
I didn't really get your question, if you want to remove login box when you're logged in, or when you aren't logged in yet. If you want to remove login box when you aren't logged in yet, use this:

Put this code before and after the content, that you wan't to remove, when you're not logged yet.
You can find it in: components > com_virtuemart > views > cart > tmpl > default.php
Find this code: <?php echo shopFunctionsF::getLoginForm($this->cart,false);

And replace it like this:
Quote<?php
$user =& JFactory::getUser();
if (!$user->guest) {
?>
<?php
echo shopFunctionsF::getLoginForm($this->cart,false);
?>
<?php } ?>

<?php

This worked perfectly for me, so I did that on deliver to/ship to content, which you can find in default_pricelist.php.
Title: Re: i don't want to show login box in show chart page
Post by: resif on August 13, 2012, 13:33:20 PM
thanks alot friends l want to that too... but i said idont want to never login box after add to cart step...