Friday, 14 September 2018

SFCC Storefront

This article is in continuation to our earlier post “Intro to Salesforce Commerce Cloud (Demandware)”. In it, we learned about the what, why & how of SFCC. Now that we have access to a sandbox, let’s dive into the technical details of a storefront.


Before we get coding, we need to know the basics of what a storefront is made of. Well, a storefront is just a website. So when it’s rendered in a browser like Chrome, it’s just a bunch of JS, CSS & HTML. Let’s look at how each of these components came to be. In order to get these pieces to the client (browser), there’s a lot going on in the server.

JS
Client-side JS is authored directly by the developer, without the involvement of any tools or frameworks. These are scattered over several files, each focusing on a specific functionality. However, these aren’t referenced directly in the storefront. These are combined by Grunt into a single minified file named app.js, which in turn is included in the common footer used across all pages of the storefront.

CSS
Style sheets start out as SCSS files. This lets us use awesome features like variables, nesting, mixins & inheritance in our style sheets. Just like the JS, these too are split over several files, focusing on specific functionality or style areas. Once again, Grunt is used to combine these into a single minified file named style.css, which is included in the site header.

HTML
The pages that make up the storefront, are written in a dynamic templating language. These get processed into HTML pages when a user requests for them. The templating language used, is proprietary to SFCC & is called the Internet Store Markup Language (ISML). An ISML file is written just like an HTML, using tags that accomplish specific tasks. All HTML tags are allowed in ISMLs. In addition, ISML defines its own tags for SFCC-specific functionality. All ISML tags have the prefix “is”: <isprint>, <iscache> & so on.

MVC
SFCC uses the MVC architecture & as such, uses “models” to manipulate data, “views” to display data & “controllers” for the business logic. ISML is the view. The models & controllers are implemented as server-side JS modules. Each controller maps to a URL. When the user enters a storefront URL in their browser, or performs an action on the storefront, a controller is triggered. The controller executes the business logic, creating & using instances of models as needed. Eventually, the controller renders an ISML as a response to the user request.

About Author:
K. M. Harish is a consultant in Systems Plus Pvt. Ltd. Within Systems Plus, he actively contributes to the areas of Technology and Information Security. He can be contacted at:  harish.km@spluspl.com

34 comments:

  1. That's interesting, thank you! By the way, I just found Pro4People blog while casually browsing the internet, and I learned so many interesting things about computer science and software development - make sure you check it out too!

    ReplyDelete
  2. Promote Abhi में आपका स्वागत है Promote Abhi इंडिया की एकमात्र एसी कंपनी है जो आपको Responsive Website Designing, Mobile App Development, Digital Marketing Services, Website Development, Facebook Ads आदि सर्विसेस अफोर्डेबल Price पर देती है अगर आप अपने बिज़नेस को बढ़ाना चाहते है तो आज ही सम्पर्क करे ! Promote Abhi Responsive Website Designing Company in Delhi से +91-9899484839.

    ReplyDelete
  3. Thank you for this important information this post contains good knowledge keep doing doing this work also check out this one Best fistula and fissure Surgeon in Delhi NCR

    ReplyDelete
  4. What a wonderful information it really helps me a lot to understand new things keep updating also have a look on this Best Hemorrhoids Surgeon in Delhi NCR

    ReplyDelete
  5. Thanks a lot for giving us such a helpful information. You can also visit our website for amity assignments

    ReplyDelete
  6. Best blog, thanks for sharing this article. Best customized manufacturing erp software for any idustries.

    ReplyDelete
  7. Thanks for sharing this article and its very useful.And also visit BBA Aviation & Airline Management College Bangalore

    ReplyDelete
  8. One of the most significant advantages of entertainment websites ifovd Tv
    is the convenience they offer. Gone are the days of having to wait for a show to air on television or having to physically go to a store to purchase a movie.

    ReplyDelete
  9. San Francisco digital marketing agency, offers numerous advantages for businesses looking to enhance their online presence and reach their target audience effectively. With their local market expertise, talented professionals, industry-specific knowledge, and innovative mindset, these agencies can help you stay ahead of the competition and achieve your digital marketing goals. So, take the first step towards success and find a San Francisco agency that aligns with your business objectives today.

    ReplyDelete
  10. I think everyone should read your blog who want to learn more about imt cdl online assignments answers 2023

    ReplyDelete
  11. SFCC Storefront refers to Salesforce Commerce Cloud's online shopping interface. It offers customizable, responsive design, enabling retailers to create engaging e-commerce sites. Integrated with Salesforce's suite, it streamlines inventory management, customer data, and marketing. SFCC Storefront enhances user experience, driving sales and brand loyalty.
    Read More: Sportswear in Pakistan

    ReplyDelete
  12. This website is really wuseful. Thanks for giving this information. Remember. tom and jerry

    ReplyDelete
  13. This website is really wuseful. Thanks for giving this information. Remember.

    ReplyDelete
  14. The SFCC Storefront, or Salesforce Commerce Cloud Storefront, is a robust e-commerce platform that empowers businesses to create and manage online retail experiences. With customizable templates, seamless integration, and powerful features, it offers a user-friendly interface for creating and managing online stores, enhancing customer engagement, and driving sales for more info visit our Gaming Console Price in Pakistan

    ReplyDelete
  15. Thank you for sharing useful information. The Competition in marketing is at a pace and Covalent Softwares is at your rescue being theBulk Whatsapp in Ahmedabad
    helping your business grow. Our firm is the top Bulk Whatsapp in Ahmedabad For more details, please visit our website.

    ReplyDelete
  16. This website is really wuseful. Thanks for giving this information
    mobiledokan



    Reply

    ReplyDelete
  17. Welcome to Seekware, your trusted partner for cutting-edge blockchain and AI software development solutions. Our expert team combines the power of blockchain technology with artificial intelligence to create innovative and secure software applications that drive business growth. Whether you need smart contracts, decentralized applications, or AI-powered solutions, we have the expertise to turn your ideas into reality. Explore our services and experience the future of technology with Seekware.

    ReplyDelete
  18. This article is in continuation to our earlier post “Intro to Salesforce Commerce Cloud (Demandware)”. In it, we learned about the what, why & how of SFCCbd laptop price

    ReplyDelete
  19. The pages dark web links that make up the storefront, are written in a dynamic templating language. These get processed into HTML pages when a user requests for them.

    ReplyDelete
  20. 3A娛樂城新會員享首次儲值1000送1000,老虎機免轉送8888,百家連勝送99999,續儲再送20 優惠彩金,無風險押碼。3A娛樂城擁有近千場精彩體育賽事,更有真人、彩票、電子遊戲等多種娛樂方式選擇,讓您擁有完美遊戲體驗,快來3A娛樂城註冊領好禮!3A娛樂城

    ReplyDelete
  21. Great breakdown of SFCC storefront tech! The use of Grunt for JS and CSS consolidation is efficient, and SCSS for styling adds flexibility. The insight into ISML as a proprietary templating language is valuable. The mention of MVC architecture clarifies the roles of models, views (ISML), and controllers. Looking forward to more tech insights!top 5 engineering colleges in coimbatore

    ReplyDelete
  22. Excellent breakdown of SFCC storefront tech! Grunt's role in consolidating JS and CSS is noteworthy, and the use of SCSS for styling is a smart choice. The proprietary ISML adds an interesting layer to dynamic templating, and the MVC architecture provides a clear understanding of roles. Excited for more tech insights in your future posts! B Des Interior Design Colleges in Tamilnadu

    ReplyDelete
  23. It sounds like you're involved in a wide range of IT services, from application development and IT support to SharePoint services, IT consulting, mobility, cloud services, and enterprise application service. That's quite a comprehensive portfolio! Are there any specific aspects of these services .kamrun seo

    ReplyDelete
  24. Devin Haney vs Ryan Garcia Live Stream
    🔴Watch Live► CLick Here
    📆 Date : April 20, 2024
    📍 Location : Barclays Center in Brooklyn, New York

    ReplyDelete
  25. Software Design: Discussing various design patterns, architectural styles, and best practices in application development. Programming Languages: Comparing different programming languages and their suitability for various types of applications.
    SEO Nahidul

    ReplyDelete
  26. Active Detailing sets the standard for Paint protection film services in Noida and Indirapuram.

    ReplyDelete