Apologies if I use some of the wrong terminology in my question. I am self-taught and still learning. The code below is part of a form template. I would like to add some additional attributes to the …
Tag: field
How to clear specific billing field value from WooCommerce checkout
I am trying to clear the billing_po_no field value from my WooCommerce checkout billing Form, by adding the following code into my functions.php file: But it does not appear to be working. Can someone point me in the right direction? Answer Try the following instead: Code goes in functions.php file of the active child theme (or active theme). It should
PHP selectfield get value from database, change and POST
I’m a beginner with PHP and have some decent issues ^^ Would like to pick the data from the field “disabled” from the database and update the selectfield with the value. The selectfield has 2 possible options “yes” and “no” (value 0 or 1). Now i would finally like to post the selected or unchanged value back to the database.
PHP Make form field read-only conditionally based on date & time
I’m trying to have 2 fields in my form become read only after a certain time & date. I’ve cobbled together some code from a few places in an attempt to make this work but I’m a total novice so I can’t identify where it’s going wrong or why. The fields I want conditionally read-only are 1 & 13 in
Woocommerce checkout with edit address layout
So, when you go to checkout you see all billing fields inputs but I want to remove all them and display a card based like on My Account / Edit Address with the Edit button. It this possible? Basically I need to eject that card on the billing fields place. Any advise? I am already using “Hide billing address from
Add custom checkout field based on product category in Woocommerce
I need to add custom checkout field based on product category. I found this code which works with products, but it is very time consuming to add Ids from every new product from particular category. How to modify this code to work with product categories? Answer Try the following to handle product categories (handling parent terms too): Code goes in
Ignore empty form fields when sending PHP
I’m fairly new to PHP so I understand enough to get myself confused, but not enough to accomplish anything productive. I have a sign-up form that allows the user to add up to five students. The form fields for each student is wrapped in their own div class (.student1, ,student2, .student3, .student4, and .student5). I’m trying to prevent the PHP