You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After v4.50.0, it seems like the Antlers syntax for using tags in conditions isn't working the same way. I believe it's related to the changes in #9504.
For example, with my Simple Commerce addon, both of these syntaxes used to work:
Simple Commerce's tags are a bit funky since they have two colons (I have the concept of subtags, so SC has one tag, then there's subtags for the cart/checkout form/coupons/etc). I don't know much about the Antlers parser but that might be throwing something off?
How to reproduce
Create a new site using the Simple Commerce Starter Kit
statamic new cms-9615 duncanmcclean/sc-starter-kit
Open the site, go to the "Products" page and add a product to the cart
In the footer, you'll see "Cart:", which should be followed by your order ID. This is using the syntax which still works.
Bug description
After v4.50.0, it seems like the Antlers syntax for using tags in conditions isn't working the same way. I believe it's related to the changes in #9504.
For example, with my Simple Commerce addon, both of these syntaxes used to work:
However, now, after v4.50.0, only one of those syntaxes works:
Simple Commerce's tags are a bit funky since they have two colons (I have the concept of subtags, so SC has one tag, then there's subtags for the cart/checkout form/coupons/etc). I don't know much about the Antlers parser but that might be throwing something off?
How to reproduce
statamic new cms-9615 duncanmcclean/sc-starter-kit
Cart: {{ if {sc:cart:has} }} {{ sc:cart:id }} ({{ sc:cart:count }} items) {{ else }} None {{ /if }}
resources/views/layout/_footer.antlers.html
view, update line 21 to this:Cart: {{ if {sc:cart:has} === true }} {{ sc:cart:id }} ({{ sc:cart:count }} items) {{ else }} None {{ /if }}
Logs
No response
Environment
Installation
Starter Kit using via CLI
Antlers Parser
None
Additional details
No response
The text was updated successfully, but these errors were encountered: