Add Additional Terms at Checkout WooCommerce
Step 1: Add the Checkbox Firstly, you need to add the checkbox. To do that, Go to your WordPress Dashboard Select Appearance > Theme file editor Find your functions.php and…
Step 1: Add the Checkbox Firstly, you need to add the checkbox. To do that, Go to your WordPress Dashboard Select Appearance > Theme file editor Find your functions.php and…
$product = wc_get_product( $product_id ); //echo $csvpro.''; exit; $product->update_meta_data( 'ean',sanitize_text_field( $csvpro )); $product->update_meta_data( 'grossweight', sanitize_text_field( $progrossweight ) ); $product->update_meta_data( 'expectedinweek', sanitize_text_field( $proexpectedinweek ) ); $product->update_meta_data( 'demostock', sanitize_text_field( $prodemostock ) );…