- Posts: 4
- Thank you received: 0
when cart is empty, proceed to checkout instead of
10 years 1 month ago #249345
by katrowen
when cart is empty, proceed to checkout instead of was created 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?
-- 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.
10 years 1 month ago #249349
by nicolas
Replied by nicolas on topic when cart is empty, proceed to checkout instead of
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:
to:
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.
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;');
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;');
Please Log in or Create an account to join the conversation.
Time to create page: 0.165 seconds