Set Special Price Programmatically In Magento

前端 未结 2 1763
再見小時候
再見小時候 2020-12-24 15:04

I am trying to write a script that will set a special price on a product with a start and an end date. When I run my script it does successfully set the special price, but t

2条回答
  •  甜味超标
    2020-12-24 16:01

    This is just a guess but have you tried passing a timestamp like from time() and leaving out the setSpecialFromDateIsFormated(true)? That should cause the backend model to reformat it appropriately for you.

提交回复
热议问题