kkarpieszuk / wc-price-history

Track Woocommerce Products prices history and display the lowest price in the last 30 days. This plugin allows your WC shop to be compliant with European Commision Directive 98/6/EC Article 6a which specyfies price reduction annoucment policy.
MIT License
6 stars 4 forks source link

Handle dynamic price discounts #9

Closed kkarpieszuk closed 10 months ago

kkarpieszuk commented 1 year ago

handle other cases than setting discount in standard Sale field.

This will require user input with the info what kind of dynamic discounts they use.


Hint: Are you waiting for the same feature to be implemented? Please react with ❤️ to this issue descriptions (features with most reactions will get higher priority)

kkarpieszuk commented 10 months ago

from this comment on wp.org it looks the simplest way to achieve it will be replacing all get_post_meta( $product_id, ‘_price’, true ); with $product->get_price()

https://wordpress.org/support/topic/disable-copy-meta-history-price-when-product-copy/#post-17166940