I want to set "Special Price" for product from date to date programmatically by code but don't know how, i use Magento 2 EE. I can set in admin use
but I want use code to set programmatically. If anyone know, please advice.
catalog-stagingmagento-2.1magento-enterprisemagento2special-price
Best Answer
like Igor already mention you can try with the following. First, create scheduled update instance and set name, start and end time.
If we omit setting the end date, scheduled update will run indefinitely. At the end, save scheduled update and set it's version.
Next, create product updates
And the last step is to schedule product updates
I wrote a small example and it can be found here