Announcement

Collapse
No announcement yet.

Categories or Pages in Search (Preview) Results

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Categories or Pages in Search (Preview) Results

    In the Levels ReadyTheme the Search Preview displays Categories using javascript. How do you get the Categories to display in the Shadows Search Preview or in the search results? The use of facets is only helpful if products are assigned to the category.

    For those wondering why no products are assigned to the category - I'm trying to figure out a workaround for the lack of Page searchability. If anyone has a way to pull a Page into the search results then the above question becomes moot.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    lesliekirk The Levels Framework is able to include the categories because it is not using the native search module. The Levels Framework implemented an AJAX call to a page with this template code, https://snippets.cacher.io/snippet/563a453da2b7da66025c.

    The template code would use the CategoryList_Load_Offset to search for the categories (and products) then output the results in a JSON object on the page. Within the response of the AJAX call the data would be parsed and then added to the page.

    I have not tried to implement this feature with the native search module but I believe it is possible but would take some work implementing.
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment

    Working...
    X