Hey all, I'm new to SCA. Trying to figure things ...
# suitecommerce
a
Hey all, I'm new to SCA. Trying to figure things out. Is it possible to develope customizations? I'm looking to automatically add a non-inventory item to the cart if a condition is met and some other item is added to the cart. Is that possible? Any help is appreciated. Thanks.
s
Yes it is possible to develop customisations. We have whole swathes of documentation, training courses and a developer portal dedicated to it. See: • https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/chapter_N2655313.html#Commerce-Website-Developer-Documentation-Overviewhttps://developers.suitecommerce.com/getting-started.htmlhttps://learn.oracle.com/ols/course/suitecommerce-theme-and-extension-development/85169/84754 As for your specific requirement — is the item free? If so, you could probably just use a free gift promotion.
a
thanks @Steve Goldberg I looked into SuitePromotions, but the item isn't free. Trying to add a fuel charge automatically once an item is added to the cart
i'll look into this documentation, thanks a lot
I know I can do this with a UE in Netsuite pretty easily, but I'd like to to be customer facing, so the customer sees the fuel charge added to their cart
s
OK, well you could probably write a simple extension to do that but you may need to use Scriptable Cart instead
If you’re used to UEs then scriptable cart may actually be easier for you
It’s kinda like “what if we had UEs but for the web store context?”
So if the fuel charge is based on, say, weight you could have a recalc script that adds/modifies the fuel charge each time the cart changes using the weight of the item multiplied by an amount
a
If the site currently isn't using scriptable cart, and I enable it (but don't add any scripts yet), nothing should change, right?
s
Ticking the box should have no effect if no scripts are running
As with all these things, I would recommend writing/testing customisations on a sandbox or non-production site first
a
as would I...unfortunately, they don't have a sandbox 😞
will test code locally when possible...but things like that settings has to be done in prod
s
😅 good luck
a
@Steve Goldberg thanks again for your help. Do you know if the customer's price level is available from the site? I'm only seeing it in a comment
s
Not sure what you mean by "only seeing it in a comment". Do you mean the name of the price level?
a
The name or the id of the price level. If i look through everything on the page in chrome, it's in the cookie, its not on the page, it only appears in a comment on the page
(btw, we've already invested more time into this than we should...this company is using Site Builder which is deprecated which is why I was trying to find a hacky way around what they need...and i think we've done it...but they don't want to pay for it....so really don't worry)
Thanks for your help!
turns out...they do want to pay for it. Good news lol