Jump to content

Recommended Posts

Posted

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

image.thumb.png.2a28484147df2faba7273aaec8b559f0.png

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:

image.thumb.png.ea1f52bcdb7c8109e32345e7916a515d.png

 

tx,J

 

Posted

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!

 

Posted
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

  • Like 1
Posted (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 by kongondo

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...