• 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

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