Hi Everyone! How to trigger the scriptable cart sc...
# suitecommerce
z
Hi Everyone! How to trigger the scriptable cart script form sca website when the user is not logged in ? the script works fine for me when the user is logged in.
e
Scriptable cart is specifically for checkout only. What is your business case?
z
so we have some item options (Shipping option) that user can select on product detail page that changes the price of the item (for example extra 100$ on one option selection) for that purpose we are using the scriptable cart. So far, the script is working fine when the user is logged in upon selection of item option it changes the price but it is not working when the user is logged out.
e
I see, that's weird, take a look here: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/article_63082620519.html#subsect_164824204645 I have not used scriptable cart on that way.
v
@Zohaib Ahmed you can check the web context other and see if that works, it works for me in some cases
z
How did you do that becuase if a user is not logged in i am not getting any log of context ?
v
I mean the context of the deployment of the client script
z
Oh I see, okay will try this
These are the ones which are related to web but web context other is not in the list
v
look for just “Other”
z
I tried with just check the "Other" but it didn't work is there any other thing that could be the cause of problem ?
v
what function are you using?
z
validateLine
v
and it does not enter the function? or it does but it does not work?
z
it does not enter the function