News:

Support the VirtueMart project and become a member

Main Menu

[ SOLVED ] Cart vs. Checkout

Started by DaggaTora, March 12, 2012, 12:18:35 PM

Previous topic - Next topic

DaggaTora

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?
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

DaggaTora

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!
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

Virtual


DaggaTora

You can paste it in com_virtuemart/views/cart/default.php
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

illPhever

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?