Error message at checkout

  • Posts: 73
  • Thank you received: 1
8 years 9 months ago #229676

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- PHP version -- : 3.4.8
-- Error-message(debug-mod must be tuned on) -- : Error

Please complete the First name field

Please complete the Last name field

Please complete the Address field

Please complete the City field

Please complete the Telephone field

When customer adds item to the cart then goes to checkout and clicks on registration but then deletes the product from the cart (without completing the registration) (happens on guest checkout also) we get the following error message. How can I stop this from happening? I am aware they did not complete the registration but if they delete the product from the cart then they should not receive an error message.

Error

Please complete the First name field

Please complete the Last name field

Please complete the Address field

Please complete the City field

Please complete the Telephone field

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 9 months ago #229692

Hi,

You can add the code:

		$class = hikashop_get('class.cart');
		$class->get();
		if(empty($class->cart->cart_id)){
			$app = JFactory::getApplication();
			$app->redirect( $this->redirect_url, JText::_('CART_EMPTY'));
		}
after the code:
$this->initCart(true);
			$this->cart_update = true;
in the file components/com_hikashop/controllers/checkout.php

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

Time to create page: 0.042 seconds
Powered by Kunena Forum