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
Marketing guy asked about adding items to cart via Clerk blocks and I noticed the above. The basics of add to cart in M2 are formKey and a base64 encoded URL, like you've done above. Awesome.
But unlike you've done, the form_key on a page cached site comes from a cookie, not from the form key at time of cache, with Magento_PageCache/js/form-key-provider updating all 'input[name="form_key"] elements to use this value.
So in my head, using the globals formkey generated in tracking.phtml won't work, it will give an invalid form key.
The text was updated successfully, but these errors were encountered:
With reference to https://github.com/clerkio/clerk-magento2/blob/master/view/frontend/templates/tracking.phtml#L23-L26
Marketing guy asked about adding items to cart via Clerk blocks and I noticed the above. The basics of add to cart in M2 are formKey and a base64 encoded URL, like you've done above. Awesome.
But unlike you've done, the form_key on a page cached site comes from a cookie, not from the form key at time of cache, with Magento_PageCache/js/form-key-provider updating all 'input[name="form_key"] elements to use this value.
So in my head, using the globals formkey generated in tracking.phtml won't work, it will give an invalid form key.
The text was updated successfully, but these errors were encountered: