Remove form on the payments page
MatteoLidoni opened this issue · 8 comments
@MatteoLidoni hi, are you saying that you are able o see the custom form on both steps, shipping, and payment?
@sbodak
I would like to hide the form only on the payment page!
Then display the form on the "Shipping" page and remove it on the "Payment" page
I hope I was clear.
@MatteoLidoni It's probably also a part of your custom theme customization.
My module by default only shows the customs form on the shipping step.
This is a part where the custom form is defined on the checkout_index_index.xml
https://github.com/sbodak/magento2-checkout-custom-form/blob/master/view/frontend/layout/checkout_index_index.xml#L16
Just make sure that similar part of code is not present on payment-step
node.
Also, double check block code from https://github.com/sbodak/magento2-checkout-custom-form/blob/master/view/frontend/web/template/shipping.html#L32
Here is a template for custom form to be shown only on shipping step.
@MatteoLidoni The latest version (1.2.*
) has been tested on M 2.3.
Not sure what behavior is in2.2.5
. You can test a tag of 1.1.*
I can see that you already customize a custom form.
Probably, you copy-paste something to the wrong place.
Read my comment above and double check.
@MatteoLidoni I found the bug. Fix in progress.
@MatteoLidoni I've fixed this issue. You can check it now.
@sbodak Thank's for your reply.
Now it works well.
Have a nice day!