Achtida Posted October 8, 2021 Share Posted October 8, 2021 Hello, i try to add new specific prices via Webservice but i cannot although i can update (edit) via webservice a specific price record that i added from the administration panel. Do you have any idea what i do wrong when passing the data? $PriceFields = $blankXml->specific_price->children(); $PriceFields ->id_product = $id_product; $PriceFields ->price = $price; $PriceFields ->id_product_attribute = 0; $PriceFields ->id_group = 4; $PriceFields ->id_shop = 1; $PriceFields ->id_shop_group = 0; $PriceFields ->id_cart = 0; $PriceFields ->id_currency = 0; $PriceFields ->id_country = 0; $PriceFields ->id_customer = 0; $PriceFields ->from_quantity = 1; $PriceFields ->reduction = 0.000000; $PriceFields ->reduction_tax = 1; $PriceFields ->reduction_type = 'amount'; $PriceFields ->from = strtotime('0000-00-00 00:00:00'); $PriceFields ->to = strtotime('0000-00-00 00:00:00'); $PriceFields ->id_specific_price_rule = 0; $createdXml = $webService->add([ 'resource' => 'specific_prices', 'postXml' => $blankXml->asXML(), ]); thank you in advance Link to comment Share on other sites More sharing options...
leonardomarinio Posted March 9, 2023 Share Posted March 9, 2023 Hola, lo pudiste solucionar? Quiero saber como enviar datos a esta tabla ya que la doc no es muy especifica Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now