Add Field Value Programmatically before Placing Order
-
Hi,
I’m creating a product for which I need an additional text field. The value of this field will be defined by the customer’s actions prior to clicking on the Add TO Cart link.
The Customer will provide two values prior and based on those values, I have to add the appropriate product to cart directly using Woocommerce hooks WC()->cart->add_to_cart( 1326 )
My first question is, how do I set the value for the additional field manually before adding the product to cart?
My second question is, how do I display this in the Cart and Checkout page? Will the field automatically show up along with the cart information? Will it work with Oxygen Builder?
- The topic ‘Add Field Value Programmatically before Placing Order’ is closed to new replies.