I'm in the process of migrating my store from Legacy SEO settings to URI management. I have everything set up and working, but I've run into an odd issue I can't figure out.
In my category tree header, I am using the Toolkit basket function to display the number of items in the user's basket. For some reason, the function is not working on pages generated with URLs created by the URI management system--which is all my PROD and CTGY pages. The function is working on pages that are not generated through the URI management system, like my BASK page.
I thought it might be related somehow to having this code in the category tree, so to test I dropped this code directly into my CTGY page template.
<mvt:item name="toolkit" param="basket|itemcount" />
<br>Items in Basket: &mvte:toolkit:basketcount; or &mvt:global:itemcount;
When I view the tokens available for the CTGY page, I see values for both those entities which match what I have in an open basket. When I click the option to view the variable on a live page, the page displays with the variables in place and showing the correct values. The URL for the page, though, is a long URL not matching the format I have set up in URI management.
However, when I view the same CTGY page on my site using the shortened URL generated by URI management both those tokens show a 0 value instead of what they should show.
I wondered if this was a Toolkit issue, so I tried dropping in this code right next to the previous on my CTGY page template:
<mvt:item name="toolkit" param="random|nrandom|100" />
Random number: &mvte:global:nrandom;
Toolkit successfully creates a random number on pages that are generated by the URI management system. So the issue with basket count not showing isn't a Toolkit issue. It seems to be something with the URI management system.
Any thoughts on how I might be able to resolve this?
In my category tree header, I am using the Toolkit basket function to display the number of items in the user's basket. For some reason, the function is not working on pages generated with URLs created by the URI management system--which is all my PROD and CTGY pages. The function is working on pages that are not generated through the URI management system, like my BASK page.
I thought it might be related somehow to having this code in the category tree, so to test I dropped this code directly into my CTGY page template.
<mvt:item name="toolkit" param="basket|itemcount" />
<br>Items in Basket: &mvte:toolkit:basketcount; or &mvt:global:itemcount;
When I view the tokens available for the CTGY page, I see values for both those entities which match what I have in an open basket. When I click the option to view the variable on a live page, the page displays with the variables in place and showing the correct values. The URL for the page, though, is a long URL not matching the format I have set up in URI management.
However, when I view the same CTGY page on my site using the shortened URL generated by URI management both those tokens show a 0 value instead of what they should show.
I wondered if this was a Toolkit issue, so I tried dropping in this code right next to the previous on my CTGY page template:
<mvt:item name="toolkit" param="random|nrandom|100" />
Random number: &mvte:global:nrandom;
Toolkit successfully creates a random number on pages that are generated by the URI management system. So the issue with basket count not showing isn't a Toolkit issue. It seems to be something with the URI management system.
Any thoughts on how I might be able to resolve this?
Comment