Support » Plugin: WooCommerce » Update variation price by variation id

  • Hi,i tried to update sale price in variation by aviation id .

    i try the following code

    update_post_meta($variation_id,’_sale_price’,$variation_cost);

    it is working in backend but in frontend and cart it is not effecting.
    Also i noticed that ‘display_price’ is displaying on front end and cart .

    I have product id , variation id . How i can update the variation price ?

    Please help .

    https://wordpress.org/plugins/woocommerce/

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Update variation price by variation id’ is closed to new replies.