php - bigcommerce API update product issue "The field 'calculated_price' cannot be written to. Please remove it from your request before trying again" -


can 1 solve issue....

fatal error: uncaught client error (400): field 'calculated_price' cannot written to. please remove request before trying again.

            $old_product = bigcommerce_api::getproduct($bid);     $old_product->name              = $_post['part_number'];     $old_product->price             = $_post['price'];     $old_product->weight            = $_post['weight'];     $old_product->width             = $_post['width'];     $old_product->categories        = array($_post['categories']);     $old_product->height            = $_post['height'];     $old_product->depth             = $_post['depth'];     $old_product->description       = $_post['longdescription'];     $old_product->update(); 

using bigcommerce::updateproduct() method works, try this

$fields = array(     "name"  => $_post['part_number'],     "price" => $_post['price'],     //more fields here... );  bigcommerce::updateproduct($old_product->id, $fields); 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -