when cart is empty, proceed to checkout instead of

  • Posts: 4
  • Thank you received: 0
8 years 2 months ago #249345

-- 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.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 2 months ago #249349

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:

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:
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.052 seconds
Powered by Kunena Forum