The field "renew" when adding a new item

  • Servitel

    448 Beiträge

    Schweiz

    Hi
    on the description of this filed I see:
    Accepted values and their meanings

    empty : renew until sold
    0 : the sale will not be renewed
    1 : renew the sale 1 time
    2 : renew the sale 2 times
    3 : renew the sale 3 times
    4 : renew the sale 4 times
    5 : renew the sale 5 times
    10 : renew the sale 10 times
    99 : renew the sale 99 times


    But passing 'empty' it's impossible. if I don't pass this field the renew value is set to 5. If I pass "NULL", same 5 times
    It's possible to set this as explained 'renew until sold' or the documentation need to be amended with the values accepted ?
  • Servitel

    448 Beiträge

    Schweiz

    Obviously as usual no one in Delcampe check this forum regularly

    But in the next future D* ask 19 euro per month for the API service (old api system and no support). Great !
  • @dorian
    Administrator

    69 Beiträge

    Belgien

    Hi
    on the description of this filed I see:
    Accepted values and their meanings

    empty : renew until sold
    0 : the sale will not be renewed
    1 : renew the sale 1 time
    2 : renew the sale 2 times
    3 : renew the sale 3 times
    4 : renew the sale 4 times
    5 : renew the sale 5 times
    10 : renew the sale 10 times
    99 : renew the sale 99 times


    But passing 'empty' it's impossible. if I don't pass this field the renew value is set to 5. If I pass "NULL", same 5 times
    It's possible to set this as explained 'renew until sold' or the documentation need to be amended with the values accepted ?
    • Erstellt am 17.03.2024 um 14:03
    • #1702469
    Hello Servitel,

    Passing to renew field a null value make it renew until sold.
    By the way, you'r right, there is a mistake on the documentation: passing 99 value makes it renew until sold aswel (but is deprecated) and it's not empty but a null value.

    $options = [
    'form_params' => [
    'item[renew]' => 'null'
    ]];

    Have a nice day,
    Regards,
  • Servitel

    448 Beiträge

    Schweiz

    HI @dorian
    I have tried with your suggestion and now the field renew is empty when I GET item

    This is right for until sold ?

    Thanks
    Roberto
  • @dorian
    Administrator

    69 Beiträge

    Belgien

    Hello Servitel,

    Yes it's right, it will keep running until sold, when no renew the value is 0.

    Have a nice day,
    Regards,
    --
  • postcarddatabase

    65 Beiträge

    Belgien

    @dorian why was my same question never answered? i asked this on 20 jan already

    also please explain how you set 'null' and not null (which renews 5 times as i mentioned, and servitel in this post) to this variable as it is a integer according to the 'documentation'?
  • Servitel

    448 Beiträge

    Schweiz

    @dorian why was my same question never answered? i asked this on 20 jan already

    also please explain how you set 'null' and not null (which renews 5 times as i mentioned, and servitel in this post) to this variable as it is a integer according to the 'documentation'?
    • Erstellt am 06.04.2024 um 08:23
    • #1717961
    you need to pass 'null' as explained by @dorian, not a numeric value

    Documentation is a little bit out of date :d-unhappy:
  • postcarddatabase

    65 Beiträge

    Belgien

    but that's a string, while the documentation says the value is an integer; doesn't make any sense?
  • Servitel

    448 Beiträge

    Schweiz

    but that's a string, while the documentation says the value is an integer; doesn't make any sense?
    • Erstellt am 06.04.2024 um 10:58
    • #1718174
    The documentation was not yet amended.

    Use 'null' and works fine.
    On the past the value of 99 was used for "until sold" but D* have decided to change cards on the table :fight3:
  • @fred
    Administrator

    127 Beiträge

    Belgien

    I just updated the documentation.

    Note that the "99" value is still accepted but is deprecated and may be removed in the near future

    Regards,
    Fred
  • postcarddatabase

    65 Beiträge

    Belgien

    thanks for ignoring me delcampe :hello:

Werden Sie Mitglied der Sammler-Community!

Anmelden Einloggen