Item modificatio returns error ShippingModelId empty

  • chartaland

    7 messages

    Italie

    Hi there,
    since Delcampe introduced the new shipping model, the modification of an existing item returns an error: err_item_emptyShippingModelId
    The problem is that there is no ducumentation on how specify this new field.
    I checked the online documentation ant the id_shipping_model is only mentiond in the Authorized Values page.
    The second problem is that this means that the users is obliged to specify 1 or more shipping models.
    The strange thing is that adding a new item without any id_shipping_model works perfectly.
    I think Delcampe should made some test and documentation update before to release a new function!
  • crea-livres

    19 messages

    France

    to get shipping models:
    Lien (https)

    you post id_shipping_model under item :

    ex:
    $postData = array(
    'type' => 'fixedPrice',
    'item' => array(
    'id_category' => $r['remote_categories_id'],
    'fixed_price' => $r['calcPrice'],
    'currency' => 'EUR',
    'title' => mb_substr($r['products_name'],0,120),
    'personal_reference' => $r['products_id'],
    'id_shipping_model'=>$r['id_shipping_model'])
  • chartaland

    7 messages

    Italie

    Thank you, but this does not solve the problem that you made the field mandatory.
    This means that the customer MUST create at least 1 shipping model!
    And this is a mismatch between insert ana modify items, since ading a new item does not require the shipping model id.
  • crea-livres

    19 messages

    France

    i made nothing i am just trying to help you
  • chartaland

    7 messages

    Italie

    i made nothing i am just trying to help you
    • Posté le 28 juin 2021 à 07:10
    • #1299049
    Sorry, I must admit I made a mistake.
    I did not check you avatar and I thought the reply was from someone from Delcampte team.

    You've been kind and I thank you for your help.

    Unfortunately the problem is serious and I do not see any reply form Delcampe.

    Kind regards
  • @thomas
    Compte fermé

    348 messages

    Belgique

    Sorry, I must admit I made a mistake.
    I did not check you avatar and I thought the reply was from someone from Delcampte team.

    You've been kind and I thank you for your help.

    Unfortunately the problem is serious and I do not see any reply form Delcampe.

    Kind regards
    • Posté le 29 juin 2021 à 06:47
    • #1299649
    Hello chartaland,

    The 'id_shipping_model' is only mandatory if the GET /shippingConditions returns false as you can read on the page of Authorized Values.

    Best Regards,
    --
    Thomas
    Delcampe Team
  • chartaland

    7 messages

    Italie

    Hi Thomas,
    I think you are wrong.
    Otherwise you sould explain me why I'm receivig the error:
    400 - err_item_emptyShippingModelId
    when I try to modify an item.
    It's wothless to say that the modification worked perfectly before Delcampe introduced the new field.
    Did you make a test?
    Thank you.
  • woodhouse

    75 messages

    Italie

    Same situation.
    My customer defined a simple rule and the modification works fine.
    If you do not specify the shiping model the 400 error is returned.
    By contrast, you can add a new item without the shipping model, even if the documentation says it's mandatory.
    What a mess!
  • @thomas
    Compte fermé

    348 messages

    Belgique

    Hello,

    It has been fixed, you can update your items again without specifying the 'id_shipping_model'.

    We're sorry for the inconvenience.

    Best Regards,
    --
    Thomas
    Delcampe Team
  • ansichtskartenpool

    34 messages

    Allemagne

    Hello,

    It has been fixed, you can update your items again without specifying the 'id_shipping_model'.

    We're sorry for the inconvenience.

    Best Regards,
    --
    Thomas
    Delcampe Team
    • Posté le 12 juil. 2021 à 04:17
    • #1304306
    :applause: had same problem

Rejoignez la communauté des collectionneurs !

S'inscrire Se connecter