I have added some custom options on woocommerce single product page using the code below on my theme's functions.php:
function options_on_single_product(){
?>
<input type="radio" name="option1" checked="checked" value="option1"> option 1 <br />
<input type="radio" name="option1" value="option2"> option 2
<?php
}
add_action("woocommerce_before_add_to_cart_button", "options_on_single_product");
Now i want to display the selected option value on cart page. Please help me to do this. Thanks
Here is the complete code to Store product custom field in cart object and display that in Cart and Checkout pages:
Code goes in function.php file of your active child theme (or theme) or also in any plugin file.
This code is tested and works.