• 0
Luis

updating a product and no changes inmediately

Question

Hello:

I'm trying to update a local_pick_up field and initially works, but now is not working any more. Do you know If only I can update once for day? or What I'm doing wrong?

It is important to say I'm getting a 200 sucess code

Thanks

Hola:

He intentado actualizar el campo de local_pick_up e iniciallmente cambio una sola vez, despues he seguido haciendo otras pruebas y dejo de funcionar. Saben si solo se puede actualizar una vez al dia o algo similar?. O en que estoy errando?

gracias

this is my code:

$body = array('price' =>'202','available_quantity'=>'2','shipping'=>array('mode'=>'me2','local_pick_up'=>'false','free_shipping'=>'0'));

    
    $response = $meli->put('/items/MLM549399XXX', $body, $params);
    print_r($response[body]->price);
    echo "<br>";
    print_r($response[body]->available_quantity);
    echo "<br>";
    echo "<pre>";
    print_r($response[body]->shipping);
    echo "</pre>";

 

this is what I get:

 

202
2

stdClass Object
(
    [mode] => me2
    [local_pick_up] => 1
    [free_shipping] => 1
    [free_methods] => Array
        (
            [0] => stdClass Object
                (
                    [id] => 501245
                    [rule] => stdClass Object
                        (
                            [free_mode] => country
                            [value] => 
                        )

                )

        )

    [dimensions] => 
    [tags] => Array
        (
        )

    [logistic_type] => drop_off
    [store_pick_up] => 
)

 

Share this post


Link to post
Share on other sites

1 answer to this question

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 account

Sign in

Already have an account? Sign in here.

Sign In Now