Posted on 24/04/2019 10:04:18
First I see the raw default.aspx call which has no valid response, it redirects to a beautified call which does have a valid JSON product feed:
301 https://myproject.localhost/Default.aspx?ID=52&groupid=123&feed=true&DoNotShowVariantsAsSingleProducts=True×tamp=636916951478523951
response: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
200 https://myproject.localhost/en/page-name/category/subcategory?feed=true&DoNotShowVariantsAsSingleProducts=True×tamp=636916951478523951
response: Valid JSON
The macro doesn't get hit and the wrong products are shown.
When I F5 the page the same happens, a 301 and a 200 but with a new timestamp value.
But still no Macro hit and still the same wrong products are shown.
I don't think there is anything wrong with my Macro, because it works perfectly WHEN IT GETS HIT ...
I'm not sure how this feed works, but when this 200 call is done I expect it to use the index query as specified on the page's catalogue module everytime it is called.
The index query used in the page's catalogue module has an EQUAL reference to my macro response value.
The index query is slimmed down to just:
Active (System.Boolean) Equal True
AND
Language ID (System.String) Equal Dynamicweb.Ecommerce.Context:LanguageID
AND
Manufacturer ID (System.String) Equal MyMacroName.MyMacroSupportedAction
AND
Parent Group IDs (System.String[]) Contains 118
I have breakpoints in my macro and they don't get hit somehow when calling the productlist page with the ProductsRenderer.cshtml template.
Strangly enough EVERY TIME I logoff while I'm on the product list page the macro DOES get hit and does exactly what I expect it to do on every product list page load ...