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

#   Highlighting incomplete fields in checkout process

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 6 months ago [\#45838](#45838) by [TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")  *[Highlighting incomplete fields in checkout process](/forum/4-how-to/45838-highlighting-incomplete-fields-in-checkout-process#45838 "When going through the checkout, if a user does not enter his credit card information or doesn't check the box accepting our terms of service, he is simple brought back to the page to the checkout...")* was created by *[TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")*

When going through the checkout, if a user does not enter his credit card information or doesn't check the box accepting our terms of service, he is simple brought back to the page to the checkout page and it isn't clear what is missing. Is there a way of adding a message such as "Please enter your credit card information" or "Please accept our TOS" when the user is returned to the page because of a field error?

Thanks
Tim

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ1ODM4LWhpZ2hsaWdodGluZy1pbmNvbXBsZXRlLWZpZWxkcy1pbi1jaGVja291dC1wcm9jZXNzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 6 months ago [\#46049](#46049) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Highlighting incomplete fields in checkout process](/forum/4-how-to/45838-highlighting-incomplete-fields-in-checkout-process#46049 "When going through the checkout, if a user does not enter his credit card information or doesn't check the box accepting our terms of service, he is simple brought back to the page to the checkout...")*

There are actually such messages. If you don't see them, it's probably because of your template:
[ www.hikashop.com/en/support/documentatio...issues.html#messages](http://www.hikashop.com/en/support/documentation/61-hikashop-compatibility-issues.html#messages)

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 6 months ago [\#46168](#46168) by [TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")  Replied by *[TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")* on topic *[Re: Highlighting incomplete fields in checkout process](/forum/4-how-to/45838-highlighting-incomplete-fields-in-checkout-process#46168 "When going through the checkout, if a user does not enter his credit card information or doesn't check the box accepting our terms of service, he is simple brought back to the page to the checkout...")*

Yes, once I configured more payment methods I saw the messages at the top. It seem to be a problem when you require the user accepts your terms of service with payment methods such as Paypal, Google Checkout or any of the others when you don't have to enter any payment credentials on the checkout screen. If you don't accept the terms of service on these payment methods then it brings you back to the screen as it should, but there is no "Please accept the terms and conditions before proceeding".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ1ODM4LWhpZ2hsaWdodGluZy1pbmNvbXBsZXRlLWZpZWxkcy1pbi1jaGVja291dC1wcm9jZXNzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 6 months ago [\#46283](#46283) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Highlighting incomplete fields in checkout process](/forum/4-how-to/45838-highlighting-incomplete-fields-in-checkout-process#46283 "When going through the checkout, if a user does not enter his credit card information or doesn't check the box accepting our terms of service, he is simple brought back to the page to the checkout...")*

Could you try to add the code: Code:

if(!$this-&gt;cart_update){ return $this-&gt;check_terms(); }

after the code: Code:

$app-&gt;setUserState( HIKASHOP_COMPONENT.'.checkout_terms', JRequest::getInt('hikashop_checkout_terms',0) );

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

That should display the message not only at the end of the checkout but also after the terms checkbox step and so works more logically with your checkout workflow and settings.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 6 months ago [\#46499](#46499) by [TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")  Replied by *[TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")* on topic *[Re: Highlighting incomplete fields in checkout process](/forum/4-how-to/45838-highlighting-incomplete-fields-in-checkout-process#46499 "When going through the checkout, if a user does not enter his credit card information or doesn't check the box accepting our terms of service, he is simple brought back to the page to the checkout...")*

Finally had a chance to try it. I like the original code better. I found it is only an issue if you are already registered and logged in, which 95% of our customers are not. Thanks for the information.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ1ODM4LWhpZ2hsaWdodGluZy1pbmNvbXBsZXRlLWZpZWxkcy1pbi1jaGVja291dC1wcm9jZXNzP3RtcGw9bWFya2Rvd24=) 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.253 seconds

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

[](#top)
