I have applied the updated code $wc_api->products->update( $product_id, array('title'=>$name,'downloads'=>array(array('name'=>$name,'file'=>$newURL))));
but its causing a Fatal error: Call to a member function update() on a non-object.
WC_API_Client_Exception errors are also not visible.
I am using the Woocommerce Version 3.2.6 and a recent copy of this API
Hi, i have the same issue as this https://stackoverflow.com/questions/29635202/woocommerce-downloadable-files-disappear-after-database-restore
I have applied the updated code $wc_api->products->update( $product_id, array('title'=>$name,'downloads'=>array(array('name'=>$name,'file'=>$newURL))));
so mine looks like this:
but its causing a Fatal error: Call to a member function update() on a non-object. WC_API_Client_Exception errors are also not visible. I am using the Woocommerce Version 3.2.6 and a recent copy of this API