• 0
Luis

Cambio de status a local_pick_up fallido

Question

Hola:

He intentado quitar la opcion recoger en el domicilio del vendedor (local_pick_up=false) pero no funciona, pero si hago lo contrario y quiero activarlo si lo hace, alguien sabe que sucede?

gracias

El producto se encuentra con las siguientes opciones de shipping modes

[
  {
    "mode": "me2",
    "logistic_types": [
      {
        "type": "drop_off",
        "default": true,
        "attributes": {
          "dimensions": "clear",
          "costs": "not_allowed",
          "free": {
            "methods": "optional",
            "accepted_methods": [
              501245,
              504645,
              504745
            ],
            "rules": [
              {
                "default": true,
                "free_mode": "country",
                "value": null,
                "free_shipping_flag": true
              }
            ],
            "flat": true
          },
          "local_pick_up": "optional"
        }
      }
    ],
    "shipping_attributes": {
      "dimensions": "clear",
      "costs": "not_allowed",
      "free": {
        "methods": "optional",
        "accepted_methods": [
          501245,
          504645,
          504745
        ],
        "rules": [
          {
            "default": true,
            "free_mode": "country",
            "value": null,
            "free_shipping_flag": true
          }
        ],
        "flat": true
      },
      "local_pick_up": "optional"
    }
  }
]

este es mi codigo con el cual estoy obteniendo codigo 200 .

 

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

 

Y esto es lo que obtengo pero cuando consulto el producto sigue activa la opcion de recoger. He ido manualmente a la web y si puedo cambiarlo. 'Alguien sabe que sucede?

 

Array
(
    [shipping] => Array
        (
            [local_pick_up] => false
        )

)
Array
(
    [shipping] => Array
        (
            [local_pick_up] => false
        )

)
Array
(
    [shipping] => Array
        (
            [local_pick_up] => false
        )

)

 

 

 

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...