Try SureDone for FREE today!

We're software that helps growing brands & retailers grow and scale. Sync, sell and ship your products and inventory on online marketplaces and storefronts faster, easier and more accurately.

Implemented

updating order of stock control fields

Currently we have 33 stock control fields. In order to make the last field first so that orders are assigned to it, we need to remove 33 fields and add 33 back.


We'd like to request an easier way to reorder the stock control fields so that it's not as time consuming and error prone. it will also help prevent orders from getting stuck while we are modifying the stock control fields since we won't need to remove them.



Suggestions:

1) make a way to update them all at once with an API call with the values in the same format currently returned by GET https://api.suredone.com/v1/options/site_cart_stock_by and GET https://api.suredone.com/v1/options/site_cart_kit_by


"stockfield1*stockfield2*stockfield3*stockfield4*stockfield5*stockfield6*stockfield7*stockfield8*stockfield9*stockfield10*stockfield11*stockfield12*stockfield13*stockfield14*stockfield15*stockfield16*stockfield17*stockfield18*stockfield19*stockfield20*stockfield21*stockfield22*stockfield23*stockfield24*stockfield25*stockfield26*stockfield27*stockfield28*stockfield29*stockfield30*stockfield31*stockfield32*stockfield33"



2) or make a way to just drag a stock field higher in the list in the UI without having to remove and re-add all the fields



UI names:

Stock Control Fields

Kit Stock Control Fields


API names:

site_cart_stock_by

site_cart_kit_by



Thank you


  • Hello,


    You can now use the settings API https://api.suredone.com/v1/settings to set the whole field order as follows:


    POST /v1/settings

    {

        "site_cart_stock_by_set":

        [

            "inventory1field",

            "inventory2field"

        ],

        "site_cart_stock_by_reset": true

    }


    And it will use the order and values from "site_cart_stock_by_set" to overwrite the whole setting.


    May also be used for setting kit fields:

    POST /v1/settings

    {

        "site_cart_kit_by_set":

        [

            "inventory1field",

            "inventory2field"

        ],

        "site_cart_kit_by_reset": true

    }


    Thanks,


    Jason

  • Worked, thanks!

Login or Signup to post a comment