I'm working on a module that will append some data to the product list array when the page loads. On the category page, I got it up and running as expected, appending to l.all_settings:category_list:products. However, on the search page, it seems like the product list isn't available when my module initializes, so nothing happens. I actually had my module just eval l.all_settings so I could look at it, and sure enough, the products list wasn't added to the search_results item.
This leads me to a couple of questions:
1 - Why would the product lists be loaded at different times relative to my module initializing from one page to the next?
2 - Is there a way to force my module to initialize later?
Thanks,
Josh
This leads me to a couple of questions:
1 - Why would the product lists be loaded at different times relative to my module initializing from one page to the next?
2 - Is there a way to force my module to initialize later?
Thanks,
Josh
Comment