I am working on a portal which sale jewelry products. The rate calculation is depend on Gold/silver market rate which update daily.
I have formula to calculate for example.
Product rate = Metal rate +making charges+tax
Metal rate change daily
I want implement functionality which allow me to update all product rates by updating metal rates.
is there any built-in feature , plugin available ?
Thank you.
2
Answers
Product import-export for WooCommerce plugin allows you to bulk update product price effortlessly. To be precise, it gives provision to update a particular value of a product with a defined value. For example, to add a value 5 with the price of all products of your store, just specify “price+5” which adds 5 to the total price (via evaluation field functionality). The plugin is also equipped to provide automatic import and export of products using Cron.
You can use this in function.php
First create a function for price update
Now all you need to do is set cron job in wordpress you can do it using action hook
Schedule an action if it’s not already scheduled
Add a new interval of day