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

#   Problem with Checkout process and custom fields

##

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

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 7 months ago -  14 years 7 months ago [\#42611](#42611) by [caguilar](/forum/user/6532-caguilar "View caguilar's Profile")  *[Problem with Checkout process and custom fields](/forum/4-how-to/42611-problem-with-checkout-process-and-custom-fields#42611 "Hi Nicolas,  I already bought the business version, but I was wondering if you can help me with some doubts that I have.  I've been testing the site and I have the following issue:  1. I put the first order without any kind of problem but if I want to do another checkout, the system gives an error.  In the Admin panel I modified the proccess in this way: (I tried with or without these options and I got the same error) . No registration . No Login ============================== Checkout workflow: Cart (next) Login / Address (next) Fields&#42; / Cart / Payment (next) ==============================  &#42;Fields: I added few new fields and one of them, is (date of event). So when I do the &quot;second checkout&quot; the system shows me an error page with this title  I think this happen because the system keep active all the info into the forms (cookies or something like that). For that reason I need to do the logout and restart all the process.  Is there any way to clear ALL data from the forms once I complete the order?  Can I get a favor (of course if you have time).. could you check the site and do a checkout after you finish, please select another item and do again a checkout. Please!   store.xpressjumpers.com/  &gt;  Thanks in advance,")* was created by *[caguilar](/forum/user/6532-caguilar "View caguilar's Profile")*

Hi Nicolas,

I already bought the business version, but I was wondering if you can help me with some doubts that I have.

I've been testing the site and I have the following issue:

1. I put the first order without any kind of problem but if I want to do another checkout, the system gives an error.

In the Admin panel I modified the proccess in this way:
(I tried with or without these options and I got the same error)
. No registration
. No Login
==============================
Checkout workflow:
Cart (next)
Login / Address (next)
Fields* / Cart / Payment (next)
==============================

*Fields: I added few new fields and one of them, is (date of event). So when I do the "second checkout" the system shows me an error page with this title
(500 - DateTime::\_\_construct() \[datetime.--construct\]: Failed to parse time string (03-30-2012) at position 0 (0): Unexpected character)

I think this happen because the system keep active all the info into the forms (cookies or something like that).
For that reason I need to do the logout and restart all the process.

**Is there any way to clear ALL data from the forms once I complete the order?**

Can I get a favor (of course if you have time).. could you check the site and do a checkout after you finish, please select another item and do again a checkout. Please!
[ store.xpressjumpers.com/](http://store.xpressjumpers.com/)

&lt;&lt;Will be better if you can check yourself because maybe with my English you can't understand me what I trying to explain&gt;&gt;

Thanks in advance,

Last edit: 14 years 7 months ago by [caguilar](/forum/user/6532-caguilar "View caguilar's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyNjExLXByb2JsZW0td2l0aC1jaGVja291dC1wcm9jZXNzLWFuZC1jdXN0b20tZmllbGRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 7 months ago [\#42760](#42760) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem with Checkout process and custom fields](/forum/4-how-to/42611-problem-with-checkout-process-and-custom-fields#42760 "Hi Nicolas,  I already bought the business version, but I was wondering if you can help me with some doubts that I have.  I've been testing the site and I have the following issue:  1. I put the first order without any kind of problem but if I want to do another checkout, the system gives an error.  In the Admin panel I modified the proccess in this way: (I tried with or without these options and I got the same error) . No registration . No Login ============================== Checkout workflow: Cart (next) Login / Address (next) Fields&#42; / Cart / Payment (next) ==============================  &#42;Fields: I added few new fields and one of them, is (date of event). So when I do the &quot;second checkout&quot; the system shows me an error page with this title  I think this happen because the system keep active all the info into the forms (cookies or something like that). For that reason I need to do the logout and restart all the process.  Is there any way to clear ALL data from the forms once I complete the order?  Can I get a favor (of course if you have time).. could you check the site and do a checkout after you finish, please select another item and do again a checkout. Please!   store.xpressjumpers.com/  &gt;  Thanks in advance,")*

I don't know where that error comes from but cleaning the fields after the order is a good idea.

That can be done quite easily by adding the code: Code:

$app-&gt;setUserState( HIKASHOP_COMPONENT.'.checkout_fields_ok',0); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.checkout_fields',null);

after the code: Code:

$app-&gt;setUserState( HIKASHOP_COMPONENT.'.coupon_code','' ); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_number',''); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_month',''); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_year',''); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_CCV',''); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_owner',''); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_valid',0); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.checkout_terms', 0 );

in the file components/com_hikashop/controllers/checkout.php
That should hopefully fix your problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyNjExLXByb2JsZW0td2l0aC1jaGVja291dC1wcm9jZXNzLWFuZC1jdXN0b20tZmllbGRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 7 months ago [\#42764](#42764) by [caguilar](/forum/user/6532-caguilar "View caguilar's Profile")  Replied by *[caguilar](/forum/user/6532-caguilar "View caguilar's Profile")* on topic *[Re: Problem with Checkout process and custom fields](/forum/4-how-to/42611-problem-with-checkout-process-and-custom-fields#42764 "Hi Nicolas,  I already bought the business version, but I was wondering if you can help me with some doubts that I have.  I've been testing the site and I have the following issue:  1. I put the first order without any kind of problem but if I want to do another checkout, the system gives an error.  In the Admin panel I modified the proccess in this way: (I tried with or without these options and I got the same error) . No registration . No Login ============================== Checkout workflow: Cart (next) Login / Address (next) Fields&#42; / Cart / Payment (next) ==============================  &#42;Fields: I added few new fields and one of them, is (date of event). So when I do the &quot;second checkout&quot; the system shows me an error page with this title  I think this happen because the system keep active all the info into the forms (cookies or something like that). For that reason I need to do the logout and restart all the process.  Is there any way to clear ALL data from the forms once I complete the order?  Can I get a favor (of course if you have time).. could you check the site and do a checkout after you finish, please select another item and do again a checkout. Please!   store.xpressjumpers.com/  &gt;  Thanks in advance,")*

Awesome!!! :woohoo:
I really appreciate it!
That was the solution, now its working fine! both problems where solved (finish button and the cache)

Thanks again, Nicolas!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyNjExLXByb2JsZW0td2l0aC1jaGVja291dC1wcm9jZXNzLWFuZC1jdXN0b20tZmllbGRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.069 seconds

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