VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: DaggaTora on March 12, 2012, 12:18:35 PM

Title: [ SOLVED ] Cart vs. Checkout
Post by: DaggaTora on March 12, 2012, 12:18:35 PM
Is there anyway to hide the login zone and the Bill/Shipping Zone in the cart so the show cart just shows the cart until you click on Checkout?

After dealing with checkout process i finally managed it like i want (more or less :) ) it but i would like the "show cart" page to be different from the last "checkout page". In the config page if you uncheck "On checkout, ask for registration" the login disappear but then you cant register.

How can i set the cart to be just a cart and the bill/shipping info to appear only in the checkout page after the user log or register?
Title: Re: Cart vs. Checkout
Post by: DaggaTora on March 16, 2012, 11:28:40 AM
Ok, finally i've solved it with this:

<?php
$user 
=& JFactory::getUser();
 
if (
$user->guest){
?>


<style type="text/css">
.cart-view .formLogin{
display:none;
}

.cart-view .billto-shipto{
display:none;
}
</style>
<?php
}
?>


Hope it helps to someone else!
Title: Re: [SOLVED] Cart vs. Checkout
Post by: Virtual on July 23, 2012, 15:59:58 PM
Where did you paste this code?
Title: Re: [SOLVED] Cart vs. Checkout
Post by: DaggaTora on July 23, 2012, 19:47:17 PM
You can paste it in com_virtuemart/views/cart/default.php
Title: Re: [SOLVED] Cart vs. Checkout
Post by: illPhever on February 09, 2013, 09:08:25 AM
Thanks, this worked fine for me as a template override (i did have to change .formLogin to .login-form), but it doesn't work for me when viewing in Internet Explorer.  Anyone know why?