How to trigger the scriptable cart script form sca...
# ask-stanley-ai
z
How to trigger the scriptable cart script form sca website when the user is not logged in ?
c
AI generated answer (using internal Slack threads):
To trigger the scriptable cart script from the SCA website when the user is not logged in, you would need to create a custom module that only shows when
isLoggedIn
is false. This module would then trigger the scriptable cart script. However, please note that the scriptable cart is a client script on the sales order, so you would need to look at the record browser for the sales order object. There's no unique id there that can be used to track non-logged in customers. Also, if you're adding a script that impacts sales orders, you would need to add "web application" and "Web Store" to the execution context on the script deployment. If you have to do branching logic, you'll have to check the context first. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820255816
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801255465
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799625814
Please provide your feedback on this answer.