How to add checkbox in checkout customer details

LiteCart Fan
จาก Sweden
เป็นสมาชิกตั้งแต่ ต.ค. 2021

Hello

How can I add my checkbox to site>checkout>customer_details ?

I added my code into ajax/checkout_customer but it doesn't work it is not saving 1/0 on DB.

How can I solve this ?

Thank you

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

Searching for an existing property should give you a hint of files to edit.
https://github.com/litecart/litecart/search?q=different_shipping_address

The value has to be passed down to the entity object ent_order. And the entity object must store it to the database.

LiteCart Fan
จาก Sweden
เป็นสมาชิกตั้งแต่ ต.ค. 2021

I don't need to save it to orders list. I have just in customers row. I have to save it to that row.

LiteCart Fan
จาก Sweden
เป็นสมาชิกตั้งแต่ ต.ค. 2021

I did all necessary things, One problem left it is not saving checkbox value to DB

LiteCart Fan
จาก Sweden
เป็นสมาชิกตั้งแต่ ต.ค. 2021

done, thanks

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

Good to hear you made progress. 👍

This thread has been closed due to long inactivity. Posting to it is not possible.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.