Skip to main content

when cart is empty, proceed to checkout instead of

More
10 years 1 month ago #249345 by katrowen
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.5.38

When the cart is empty, there is a button to proceed to checkout. Shouldn't it read continue shopping instead?

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #249349 by nicolas
Hi,

No, it's normal that it reads "proceed to checkout". However, I agree that this button should actually not be there at all if the cart is empty.

Try to change the line:
Code:
if($cart_type == 'cart' && $this->params->get('show_cart_proceed',1)) echo $this->cart->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,$url_checkout,'window.location=\''.$url_checkout.'\';return false;');
to:
Code:
if($cart_type == 'cart' && $this->params->get('show_cart_proceed',1) && $i > 1 ) echo $this->cart->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,$url_checkout,'window.location=\''.$url_checkout.'\';return false;');
in the file "showcart" via the menu Display>Views. That should remove the button when no product is in the cart. Let us know how it goes.

Please Log in or Create an account to join the conversation.

Time to create page: 0.165 seconds
Powered by Kunena Forum