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

#   Custom fields edited not kept if shipping or payment method switched

##

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

Less More

- Posts: 148
- Thank you received: 21
-
-

4 years 4 months ago -  4 years 4 months ago [\#343342](#343342) by [FDBI](/forum/user/63027-fdbi "View FDBI's Profile")  *[Custom fields edited not kept if shipping or payment method switched](/forum/27-checkout/904752-custom-fields-edited-not-kept-if-shipping-or-payment-method-switched#343342 "Hi,  I had already mentioned my issue with the save of fields at each step of the checkout process. (   www.hikashop.com/forum/shipping-methods/...for-each-result.html  )  My problem is different but I think that it's related to this: I created a custom field for the customers who want to leave a comment during their order. I put it at several steps (cart, delivery method and payment) if they wanted to add more information (or remove some). If the user fills this &quot;comment&quot; field and changes the shipping or payment method, the comment will return to its original value.  I could put this field in a separate step to make it work without too much trouble, but it's not really ideal: it will add steps just for that, and the problem of the last step, which is the choice of the payment method, will remain.  Would it be possible to keep the content of the comment (all the custom fields in fact) when changing the shipping or payment method?  Thanks in advance for your answer.")* was created by *[FDBI](/forum/user/63027-fdbi "View FDBI's Profile")*

Hi,

I had already mentioned my issue with the save of fields at each step of the checkout process.
( [ www.hikashop.com/forum/shipping-methods/...for-each-result.html](https://www.hikashop.com/forum/shipping-methods/903950-mondial-relay-plugin-1-marker-icon-for-each-result.html) )

My problem is different but I think that it's related to this:
I created a custom field for the customers who want to leave a comment during their order.
I put it at several steps (cart, delivery method and payment) if they wanted to add more information (or remove some).
If the user fills this "comment" field and changes the shipping or payment method, the comment will return to its original value.

I could put this field in a separate step to make it work without too much trouble, but it's not really ideal: it will add steps just for that, and the problem of the last step, which is the choice of the payment method, will remain.

Would it be possible to keep the content of the comment (all the custom fields in fact) when changing the shipping or payment method?

Thanks in advance for your answer.

Last edit: 4 years 4 months ago by [FDBI](/forum/user/63027-fdbi "View FDBI's Profile").

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

4 years 4 months ago -  4 years 4 months ago [\#343347](#343347) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Custom fields edited not kept if shipping or payment method switched](/forum/27-checkout/904752-custom-fields-edited-not-kept-if-shipping-or-payment-method-switched#343347 "Hi,  I had already mentioned my issue with the save of fields at each step of the checkout process. (   www.hikashop.com/forum/shipping-methods/...for-each-result.html  )  My problem is different but I think that it's related to this: I created a custom field for the customers who want to leave a comment during their order. I put it at several steps (cart, delivery method and payment) if they wanted to add more information (or remove some). If the user fills this &quot;comment&quot; field and changes the shipping or payment method, the comment will return to its original value.  I could put this field in a separate step to make it work without too much trouble, but it's not really ideal: it will add steps just for that, and the problem of the last step, which is the choice of the payment method, will remain.  Would it be possible to keep the content of the comment (all the custom fields in fact) when changing the shipping or payment method?  Thanks in advance for your answer.")*

Hello,

Sorry for this returns but in order to allow to better understand your needs and your issue can you provide these elements :
- An **Url link** to your website
- A **step by step** to reproduce the issue (or allow us to understand the context)
- Relative **screenshot** of your custom fields settings
- Any other elements than can help us to better understand.

Awaiting your elements to progress in your subject.
Regards

Last edit: 4 years 4 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

The following user(s) said Thank You: [FDBI](/forum/user/63027-fdbi "View FDBI's Profile")

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

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

Less More

- Posts: 148
- Thank you received: 21
-
-

4 years 4 months ago [\#343367](#343367) by [FDBI](/forum/user/63027-fdbi "View FDBI's Profile")  Replied by *[FDBI](/forum/user/63027-fdbi "View FDBI's Profile")* on topic *[Custom fields edited not kept if shipping or payment method switched](/forum/27-checkout/904752-custom-fields-edited-not-kept-if-shipping-or-payment-method-switched#343367 "Hi,  I had already mentioned my issue with the save of fields at each step of the checkout process. (   www.hikashop.com/forum/shipping-methods/...for-each-result.html  )  My problem is different but I think that it's related to this: I created a custom field for the customers who want to leave a comment during their order. I put it at several steps (cart, delivery method and payment) if they wanted to add more information (or remove some). If the user fills this &quot;comment&quot; field and changes the shipping or payment method, the comment will return to its original value.  I could put this field in a separate step to make it work without too much trouble, but it's not really ideal: it will add steps just for that, and the problem of the last step, which is the choice of the payment method, will remain.  Would it be possible to keep the content of the comment (all the custom fields in fact) when changing the shipping or payment method?  Thanks in advance for your answer.")*

Hi,

This message contains confidential information

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDc1Mi1jdXN0b20tZmllbGRzLWVkaXRlZC1ub3Qta2VwdC1pZi1zaGlwcGluZy1vci1wYXltZW50LW1ldGhvZC1zd2l0Y2hlZD90bXBsPW1hcmtkb3du) 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: 14327
-
-

4 years 4 months ago [\#343374](#343374) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields edited not kept if shipping or payment method switched](/forum/27-checkout/904752-custom-fields-edited-not-kept-if-shipping-or-payment-method-switched#343374 "Hi,  I had already mentioned my issue with the save of fields at each step of the checkout process. (   www.hikashop.com/forum/shipping-methods/...for-each-result.html  )  My problem is different but I think that it's related to this: I created a custom field for the customers who want to leave a comment during their order. I put it at several steps (cart, delivery method and payment) if they wanted to add more information (or remove some). If the user fills this &quot;comment&quot; field and changes the shipping or payment method, the comment will return to its original value.  I could put this field in a separate step to make it work without too much trouble, but it's not really ideal: it will add steps just for that, and the problem of the last step, which is the choice of the payment method, will remain.  Would it be possible to keep the content of the comment (all the custom fields in fact) when changing the shipping or payment method?  Thanks in advance for your answer.")*

Hi,

This is normal because you can restrict the custom fields based on the selected shipping / payment method. So when you change the selection, the system refreshes the custom order fields in case the fields to be displayed are different.

You can edit the file show_block_fields via the menu Display&gt;Views.
There, you'll find this line near the end: Code:

window.Oby.registerAjax(['checkout.fields.updated','cart.updated','checkout.shipping.changed','checkout.payment.changed'], function(params){

change it to : Code:

window.Oby.registerAjax(['checkout.fields.updated','cart.updated'], function(params){

and the fields view won't refresh when you change the shipping/payment method selected.

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile"), [FDBI](/forum/user/63027-fdbi "View FDBI's Profile")

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

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

Less More

- Posts: 148
- Thank you received: 21
-
-

4 years 4 months ago [\#343379](#343379) by [FDBI](/forum/user/63027-fdbi "View FDBI's Profile")  Replied by *[FDBI](/forum/user/63027-fdbi "View FDBI's Profile")* on topic *[Custom fields edited not kept if shipping or payment method switched](/forum/27-checkout/904752-custom-fields-edited-not-kept-if-shipping-or-payment-method-switched#343379 "Hi,  I had already mentioned my issue with the save of fields at each step of the checkout process. (   www.hikashop.com/forum/shipping-methods/...for-each-result.html  )  My problem is different but I think that it's related to this: I created a custom field for the customers who want to leave a comment during their order. I put it at several steps (cart, delivery method and payment) if they wanted to add more information (or remove some). If the user fills this &quot;comment&quot; field and changes the shipping or payment method, the comment will return to its original value.  I could put this field in a separate step to make it work without too much trouble, but it's not really ideal: it will add steps just for that, and the problem of the last step, which is the choice of the payment method, will remain.  Would it be possible to keep the content of the comment (all the custom fields in fact) when changing the shipping or payment method?  Thanks in advance for your answer.")*

Hi,

Perfect, that's exactly it.

Thanks a lot !

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

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