joe_g Posted December 15, 2022 Share Posted December 15, 2022 Hi there, I'm trying to change the custom checkout form but it's not using the code for the custom form. No matter if I use the latest demo-1 version (with corrected variable names): https://github.com/kongondo/Padloper2Starter/blob/demo-1/templates/checkout.php or the minimal version: https://github.com/kongondo/Padloper2Starter/blob/demo-5/templates/checkout.php it looks the same However if I change $isShowSectionBackArrow to 'false' it does hide the arrow, so my checkout.php is processed. Also if i set $isCustomForm to 'false' i get a different, more basic, layout: tx,J Link to comment Share on other sites More sharing options...
kongondo Posted December 15, 2022 Share Posted December 15, 2022 Hi @joe_g, 6 hours ago, joe_g said: I'm trying to change the custom checkout form but it's not using the code for the custom form. No matter if I use the latest demo-1 version (with corrected variable names): https://github.com/kongondo/Padloper2Starter/blob/demo-1/templates/checkout.php or the minimal version: https://github.com/kongondo/Padloper2Starter/blob/demo-5/templates/checkout.php it looks the same The template file checkout.php does not control the form layout or inputs. For that, you need to use the template partial checkout-form-customer-details-html.php. Here's the one for demo-1 and here is one for demo-5. 6 hours ago, joe_g said: Also if i set $isCustomForm to 'false' i get a different, more basic, layout: This is the inbuilt Padloper order customer form. 6 hours ago, joe_g said: However if I change $isShowSectionBackArrow to 'false' it does hide the arrow, so my checkout.php is processed. I don't understand how and why this would affect your checkout process. Please explain. Thanks. Apologies that the documentation is still very sketchy! Link to comment Share on other sites More sharing options...
joe_g Posted December 16, 2022 Author Share Posted December 16, 2022 15 hours ago, kongondo said: Hi @joe_g, The template file checkout.php does not control the form layout or inputs. For that, you need to use the template partial checkout-form-customer-details-html.php. Here's the one for demo-1 and here is one for demo-5. Oh I see, thanks. So the $customFormFields in checkout.php is a 'schema' to define the fields, then I also need to change the markup myself. Makes sense. Maybe it's good to mention the markup file here as well, it wasn't clear to me that it existed: https://docs.kongondo.com/start/checkout/custom-customer-form.html#supported-form-inputs 15 hours ago, kongondo said: I don't understand how and why this would affect your checkout process. Please explain. Thanks. Initially I wasn't sure if the checkout.php did anything at all, but since I could hide and show the arrow, I knew it did : P . Not my most thought-through comment. 15 hours ago, kongondo said: Apologies that the documentation is still very sketchy! No problems, one step at a time. Appreciate the patience (more questions to come for sure : P ) tx J 1 Link to comment Share on other sites More sharing options...
kongondo Posted December 16, 2022 Share Posted December 16, 2022 (edited) 9 hours ago, joe_g said: Oh I see, thanks. So the $customFormFields in checkout.php is a 'schema' to define the fields, then I also need to change the markup myself. Exactly! It is a schema. 9 hours ago, joe_g said: Maybe it's good to mention the markup file here as well, it wasn't clear to me that it existed: https://docs.kongondo.com/start/checkout/custom-customer-form.html#supported-form-inputs Yes, you are right. Good idea. I had the same thought only yesterday ?. Just to be clear though, that markup is just a demo and not a requirement as developers can use any templating and markup strategy that they want. Edited December 16, 2022 by kongondo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now