- Posts: 73
- Thank you received: 1
Error message at checkout
10 years 9 months ago #229676
by masweb
Error message at checkout was created by masweb
-- 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
-- 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
Please Log in or Create an account to join the conversation.
10 years 9 months ago #229692
by nicolas
Replied by nicolas on topic Error message at checkout
Hi,
You can add the code:
after the code:
in the file components/com_hikashop/controllers/checkout.php
You can add the code:
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'));
}
Code:
$this->initCart(true);
$this->cart_update = true;
Please Log in or Create an account to join the conversation.
Time to create page: 0.049 seconds