• Resolved Sarief

    (@sarief)


    working on plugin to auto update price of product using xml of another website.

    I’ve found two meta_key’s but which is more appropriate? which should I use? why are there two?
    Does anyone knows the difference?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    _price is what the customer is charged. _regular_price can be displayed in certain cases, such as sales or discounts, so the customer can see how much they are saving.

    Thread Starter Sarief

    (@sarief)

    so i need to update both?

    so i need to update both?
    The answer is maybe.
    Certainly you will update “_price”, it all depends upon your website etc as to if “_regular_price” is even used, and if this RRP etc is to reflect the prices sourced in your xml file.

    Moderator bcworkz

    (@bcworkz)

    It would depend on how you want to promote price changes to the customer. Price drops could be promoted as “new lower price” and the _regular_price would indicate the previous price, and _price and _sale_price would have the current price.

    But generally speaking, and in the case of price increases, then yes, set both _price and _regular_price to the same new value.

    Thread Starter Sarief

    (@sarief)

    I see. Thanks for help ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘woocommerce – difference between _price and _regular_price’ is closed to new replies.