but when user has choose an item the checkout button will active again.
thanks

yes leo, how can i do that?leo wrote:You mean, the checkout button in the menu bar?
yeah i know leo, but i want to give a tryleo wrote:Are you sure you want this?
If your customer adds products to the cart, but decides to continue the payment later and logs off, when he comes back, he cannot use the checkout button, although he has already products in his cart. This could be confusing for him.
Code: Select all
<a href="<?php echo $account; ?>"><?php echo $text_account; ?></a>
<?php if (@$login) { ?>
<a href="<?php echo $login; ?>"><?php echo $text_login; ?></a>
<?php } else { ?>
<a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a>
<?php } ?>
<a href="<?php echo $cart; ?>"><?php echo $text_cart; ?></a>
<a href="<?php echo $checkout; ?>" class="<?php echo ($enable_checkout ? 'enabled' : 'disabled'); ?>"><?php echo $text_checkout; ?></a>
</div>
</div>
<script type="text/javascript"><!--
$(document).ready(function(){
$("#bar a:last").css("border-right","0px");
});
//--></script>
<script type="text/javascript"><!--
$(".b > a").on("click", function(event){
if ($(this).hasClass("disabled")) {
event.preventDefault();
}
});
//--></script>
Code: Select all
<script type="text/javascript"><!--
$(".add > .button").on("click", function(event){
$('.b > a').removeClass("disabled");
});
//--></script>
Code: Select all
$config =& $this->locator->get('config');
Code: Select all
$cart =& $this->locator->get('cart');
Code: Select all
$view->set('cart', $url->href('cart'));
Code: Select all
$view->set('enable_checkout', $cart->hasProducts());
Hi Leo, was this fix added to the default template or does it still have to be applied manually?leo wrote: ↑Thu Dec 06, 2018 10:09 amHi, this phenomenal belly fat burners suggestion is not a fix, just a modification.
You have to add it manually.