Top listing & topmain option

  • LesTresorsDeVictoria_test

    15 berichten

    België

    Hello,

    1- When I try to post Item with option_topmain and option_toplisting set to true. Why only "option_toplisting" is affected ? option_topmain always has null value after retrieving the item.

    2- So once we've set option_toplisting to true, we can no longer set it back to false (or null) ?

    3- After adding 3 or 4 Items with these options, I had error as "has_one_promotion_option" when I tried to add one. What does this error mean ?


    I have data like this
    $data = [
    "type" => "auction",
    "item" => [
    "id_category" => 1035,
    "currency" => "EUR",
    "title" => "Test title",
    "personal_reference" => "REF-3",
    "images" =>[
    0 => " Link (https) "
    ],
    "id_shipping_model" => "1",
    "fixed_price" => "9.00",
    "qty" => 1,
    "price_starting" => "9.00",
    "price_increment" => "1.00",
    "description" => null,
    "date_end" => "2024-08-04 03:08:00",
    "duration" => 7,
    "renew" => "null",
    "option_toplisting" => true,
    "option_topmain" => true
    ]
    ];


    Regards,
  • @fred
    Beheerder

    103 berichten

    België

    Hello,

    1- When I try to post Item with option_topmain and option_toplisting set to true. Why only "option_toplisting" is affected ? option_topmain always has null value after retrieving the item.

    2- So once we've set option_toplisting to true, we can no longer set it back to false (or null) ?

    3- After adding 3 or 4 Items with these options, I had error as "has_one_promotion_option" when I tried to add one. What does this error mean ?


    I have data like this
    $data = [
    "type" => "auction",
    "item" => [
    "id_category" => 1035,
    "currency" => "EUR",
    "title" => "Test title",
    "personal_reference" => "REF-3",
    "images" =>[
    0 => " Link (https) "
    ],
    "id_shipping_model" => "1",
    "fixed_price" => "9.00",
    "qty" => 1,
    "price_starting" => "9.00",
    "price_increment" => "1.00",
    "description" => null,
    "date_end" => "2024-08-04 03:08:00",
    "duration" => 7,
    "renew" => "null",
    "option_toplisting" => true,
    "option_topmain" => true
    ]
    ];


    Regards,
    • Aangemaakt 2 aug 2024 op 10:18
    • #1777863
    Hi LesTresorsDeVictoria,

    The option_toplisting is used to display your item at the top of lists
    The option_topmain is used to display of your item in our "Featured sales" on the homepage and in the top of the lists

    So there's no need to select both options, hence the "has_one_promotion_option" error

    Are you sure you created an item with both options ? It should not be possible

    Fred
  • LesTresorsDeVictoria_test

    15 berichten

    België

    You're right. I went over my data and tried to repost it but it failed.
    I understand now, Thanks

Word lid van de verzamelaars-community!

Registreren Aanmelden