- Posts: 148
- Thank you received: 21
Custom fields edited not kept if shipping or payment method switched
4 years 4 months ago - 4 years 4 months ago #343342
by FDBI
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 "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.
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 "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.
Please Log in or Create an account to join the conversation.
4 years 4 months ago - 4 years 4 months ago #343347
by Philip
Replied by Philip on topic Custom fields edited not kept if shipping or payment method switched
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
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.
The following user(s) said Thank You: FDBI
Please Log in or Create an account to join the conversation.
4 years 4 months ago #343367
by FDBI
Replied by FDBI on topic Custom fields edited not kept if shipping or payment method switched
Hi,
This message contains confidential information
Please Log in or Create an account to join the conversation.
4 years 4 months ago #343374
by nicolas
Replied by nicolas on topic Custom fields edited not kept if shipping or payment method switched
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>Views.
There, you'll find this line near the end:
change it to :
and the fields view won't refresh when you change the shipping/payment method selected.
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>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){
Code:
window.Oby.registerAjax(['checkout.fields.updated','cart.updated'], function(params){
Please Log in or Create an account to join the conversation.
4 years 4 months ago #343379
by FDBI
Replied by FDBI on topic Custom fields edited not kept if shipping or payment method switched
Hi,
Perfect, that's exactly it.
Thanks a lot !
Perfect, that's exactly it.
Thanks a lot !
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds