Home Forums Plugin Support WP User Frontend (Free Version) Woocommerce Product Price not saving or updating correctly

This topic is: resolved

This topic contains 3 replies, has 3 voices, and was last updated by  Brennen 5 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13201

    Brennen
    Member
    Post count: 2

    Hi Tareq,

    Great plugin, only one issue:

    The woocommerce product price field does not save when adding or updating a product from the front end.

    I have read all tutorials and am using the custom meta key: _regular_price

    NOTE: It does save when I manually go to the backend and update a product from there. I do not have to edit anything, I just click update and the price automatically sets itself with the correct input from when it was added on the front end. So it's partly working.

    I got _manage_stock and _stock to work flawlessly without any errors when adding or updating a product from the front end.

    Also all other fields, besides price, work fine when adding or updating a product from the front end.

    Any help is much appreciated

    Please let me know where to send login details for you to test…

    #13203

    Mahi
    Member
    Post count: 1555

    Have you tried “_price” as meta_key?

    #13204

    Tareq Hasan
    Keymaster
    Post count: 2831

    Take a look at this, it'll update the _regular_price field with the value from _price on submit and update form.

    #13227

    Brennen
    Member
    Post count: 2

    Thanks Tareq, I changed the key to _price, added the code to the functions file, and added the _visibility key and it all works.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Woocommerce Product Price not saving or updating correctly’ is closed to new replies.