[Skip to main content](#vessel-content)

#   Error message at checkout

##

- **[masweb](/forum/user/28463-masweb "View masweb's Profile")**
- [![masweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28463-masweb "View masweb's Profile") Topic Author
- [ Offline](/forum/user/28463-masweb)

Less More

- Posts: 73
- Thank you received: 1
-
-

10 years 9 months ago [\#229676](#229676) by [masweb](/forum/user/28463-masweb "View masweb's Profile")  *[Error message at checkout](/forum/27-checkout/882250-error-message-at-checkout#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")* was created by *[masweb](/forum/user/28463-masweb "View masweb's Profile")*

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

- [ ![error-message-your-garden.jpg](/forum/attachment/29485) ](/forum/attachment/29485 "...our-garden.jpg") [ ](/forum/attachment/29485?download=1 "...our-garden.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MjI1MC1lcnJvci1tZXNzYWdlLWF0LWNoZWNrb3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 9 months ago [\#229692](#229692) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error message at checkout](/forum/27-checkout/882250-error-message-at-checkout#229692 "-- 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")*

Hi,

You can add the code: Code:

$class = hikashop_get('class.cart'); $class-&gt;get(); if(empty($class-&gt;cart-&gt;cart_id)){ $app = JFactory::getApplication(); $app-&gt;redirect( $this-&gt;redirect_url, JText::_('CART_EMPTY')); }

after the code: Code:

$this-&gt;initCart(true); $this-&gt;cart_update = true;

in the file components/com_hikashop/controllers/checkout.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MjI1MC1lcnJvci1tZXNzYWdlLWF0LWNoZWNrb3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.059 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
