• 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...