Generally: Is there a quick primer guide for peopl...
# suitecommerce
a
Generally: Is there a quick primer guide for people that know SCA dev but haven't done extension/theme development? Specifically: If I just want to conditionally hide parts of my site based on customer type what's the "correct" approach? This is SC rather than SCA. In SCA I'd just make sure I'm pulling back my customer type in my view and returning that so I can use it in my template to and wrap the HTML i want to hide in an
{{#if
for simplicity I was thinking if what I need is already being passed by the existing view all I'd really new to do is template update to make use of it, but after doing the extension and theme fetches I don't got the theme source code to even inspect??? or I'm just doing something very wrong? (help lol)
to clarify I get the .sass and the .tpl files but none of the .js or .ss files
p
to know if what you need is already passed you can use {{log this}}
AFAIK, You don't get the source for the core for SC. However, it's the same as SCA so you can take a look at it if you have a SCA at hand.
a
cool thanks
s
The SC bundle is locked, and as such we don't distribute a copy you can download and inspect. You still look at the code as it runs on your site, but it'll likely be minified and cleaned, so it'll be hard to ascertain what's going on (unless source mapping is running, in which case it will show).
The best explainer we have, in my opinion, is this blog post https://developers.suitecommerce.com/get-to-grips-with-the-commerce-extension-framework
👍 1