wordpress

April 16, 2020

Update Custom Field value woocommerce

$product = wc_get_product( $product_id ); //echo $csvpro[7].’‘; exit; $product->update_meta_data( ‘ean’,sanitize_text_field( $csvpro[7] )); $product->update_meta_data( ‘grossweight’, sanitize_text_field( $progrossweight ) ); $product->update_meta_data( ‘expectedinweek’, sanitize_text_field( $proexpectedinweek ) ); $product->update_meta_data( ‘demostock’, […]
0
Contact us

We are glad that you preferred to contact us. Please fill our short form and one of our friendly team members will contact you back.


    X
    Request a Quote