I have been this afternoon trying to see how can I pass a string variable from the product page to the cart or order, this string is a answer that the client gives, and with shourl be save with the order when the client clicks add to cart.
This should be possible many ways, However it seems that its becomming difficult to me…
I also I using this a tag to add to cart that is working tottally fine, I am just not getting how can I pass a custom string to the order, maybe add to url &customer-order=mystring, I already try it and dont seem to work so far.
<a href="<?php echo esc_url( $product->add_to_cart_url() ); ?>&quantity=3" >Add to cart</a>
Thanks! 🙂