PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 5/14/2020 9:49 PM by  Will Strohl
How to get the category list in serverside programming
 11 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Page 1 of 3123 > >>
Author Messages





Basic Member






--
5/6/2020 10:57 AM
    Can anyone tell me how can i get all the categories through server-side API

    Regards





    Basic Member






    --
    5/6/2020 11:59 AM
    hmmm, we pull from and work with data in the database all the time... less often through the APIs.

    You have already been through the list of Hotcakes API Endpoints?
    https://hotcakescommerce....5-REST-API-Endpoints

    There is a specific one for Categories
    https://hotcakescommerce....oints-for-Categories

    And if you're needing some more info, there are these two helpful articles and content from Will
    [list][*]https://hotcakescommerce....API-Example-Solution
    https://hotcakescommerce....-API-[/list]





    Veteran Member






    --
    5/7/2020 3:31 PM
    Great response, Ryan.

    As a general FYI for all readers - It's generally never a good idea to directly query the database for any commercial or open-source application. The database is considered to be part of the core application and is subject to change during an upgrade. It can break the application that you've deployed or even invalidate support.
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Veteran Member






    --
    5/7/2020 3:36 PM
    Oh, and here is the server-side API code to call to get a list of categories:

    var HccApp = HotcakesApplication.Current;
    var allCats = HccApp.CatalogServices.Categories.FindAllSnapshotsPaged(1, 5000);

    You can see an example of that below:

    https://github.com/Hotcak...tegories.aspx.cs#L73
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    5/9/2020 2:52 PM
    Is it workable for multilanguage portal?
    You are not authorized to post a reply.
    Page 1 of 3123 > >>


    Loading
    • Sign-up for the Hotcakes Community Newsletter: