I’m having some trouble getting values out of some custom text boxes that I added to the product page. I’ve hooked into “woocommerce_add_cart_item_data” and tried to get them using
$_POST['text_box_name']; but that doesn’t seem to be working.
Ajax is enabled so I’m guessing that I might be missing something? Any help is appreciated. If admins need access to the files I’m happy to send them over.
I would like to be able to get the values inside the text boxes once the “add to cart” button has been clicked. Check line 282-288 in the functions.php file; this is where I was trying to gather the details.
Just to be entirely clear, the values from the text boxes should show up in the invoice; I hard coded a string value to show you what I mean.
You didn’t provide us with the site name.
If you want to include those values in order you’d better create attributes “Chest Width”, “Shoulder Widget” etc. and use them as variations for variable products:
Please try it.
Variations aren’t an option because the input is custom text; as far as I’m aware you can only create pre-defined options with variations.
The site link is below
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty
Seems you did not register purchase code for Classico WordPress Support Forum to be able to create a topic on this forum.