WooCommerce adding product to cart programatically

I have checkbox that when clicked should add a product to the cart ans when unclicked should remove it. Developer before me solved the problem using Fee’s which should be changed to product. He used add_action( 'woocommerce_cart_calculate_fees', 'checkout_radio_choice_product', 20, 1 ); I think I got the code to work I am just struggling to find … Read more

Assign user role by text field in WordPress (Woocommerce)

I have a virtual store with woocommerce where I use the USER REGISTRATION plugin to register new customers. This plugin allows the creation of custom fields. I created a custom text field called “STATE REGISTRATION”. In this field the user can write something or leave it blank. My demand is that when creating a new … Read more