• Hello everyone,

    I faced some strange issue while accomplishing a work. I need the woocommerce price to be updated dynamically through coding. I mean I don’t want to fill in the regular price section while adding product and up on publishing i want that to be updated.

    I guess it has to do something with the publish_product hook.

    but I don’t know what should be the meta_key of price.
    so far i tried this two. but none helped.
    update_post_meta($post_id, ‘_regular_price’,10)
    update_post_meta($post_id,’_price’,10)

    Help please

    https://www.ads-software.com/plugins/woocommerce/

  • The topic ‘Updating woocommerce price on adding a product’ is closed to new replies.