PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 4/3/2018 12:08 PM by  Will Strohl
Update all Products to Searchable
 1 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Author Messages









--
4/2/2018 1:44 PM
    Probably not anyone's job to write the query for me, but not being that guy, is there an easy SQL query I can run to make all the products in the store searchable. We imported 100's from the Old Smith Cart and they all came in or most as not searchable.

    Thanks for any help.
    Dustin





    Veteran Member






    --
    4/3/2018 12:08 PM
    There's currently not a way to do this for more than one product at a time using the UI, but there's an Issue created to change that in the future.

    https://github.com/Hotcak...merce/core/issues/92

    Until then, you'll need to do this using a query, as you suggest. An example query is below, but it hasn't been tested to verify if it will work in your environment, so please make sure you back up your database before you try it. It has been tested against a clean instance of Hotcakes 03.01.00.

    [code=sql]UPDATE [dbo].[hcc_Product] SET [IsSearchable] = 1;[/code]

    If you're running the query in the built-in SQL query tool, the query below will be better.

    [code=sql]UPDATE {databaseOwner}[{objectQualifier}hcc_Product] SET [IsSearchable] = 1;[/code]

    Once you run the query, you'll likely need to clear the cache on the website. You can do that using the documentation below.

    https://hotcakescommerce....6-Clearing-the-Cache

    On a side note, questions like this are fully supported for anyone subscribed to our Developer Support Services plan.

    https://upendoventures.co...ce-Developer-Support
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes
    You are not authorized to post a reply.


    Loading
    • Sign-up for the Hotcakes Community Newsletter: