Product data available globally

stefrstefr Member Posts: 1
edited November 2019 in Products & Categories


I'm struggling with the following problem:

I need to access product data globally.

So at a textpage I need to get products based on a special category ID.

Unfortunately I can now only get this data when browsing within the category.

Example: shop.categories.3370796.subs.3299352 is only giving me the following:

But now I want to get all the products (and their details like: price, image, and URL) that are inside this "Werklampen" category.

Please help!

Post edited by stefr on

1 comment

  • JoeyJoey Administrator, Moderator, Lightspeed Staff Posts: 277 moderator

    Hi @stefr,

    The product information is not available within the shop.categories variable as it is suppose to only list category information, for menus and other listings.

    The product information is only available within the product category itself. Note that products can be added to multiple categories but products added to text-page categories are not visible in the store front.

    If desired, please clarify the reason for using a text page to show products and I might be able to help with a workaround.

    eCom Support Team
    Lightspeed HQ
Sign In or Register to comment.