What’s Trending in the Dev Community
What’s Trending in the Dev Community
Welcome to a recap of what’s trending in the BigCommerce Developer Community. Every other week, we’ll take a look at the discussions happening. You’ll see our most popular and insightful conversations, along with questions that could use your expertise or helpful advice.
…
This week’s featured discussions revolve around front-end development. Folks are using Handlebars to make design changes to their storefront and manipulate when and how various pieces of data display. Others are using the Stencil utils API to make dynamic updates, such as adding items to cart.
Code Share
- User Samuil Ilkov was trying to implement Infinite Scroll on his storefront with Stencil, but the script only pulled in products from page 1 of his catalog. Find out how this was resolved on StackOverflow.
- Robert Wooldridge is looking for a way to only load Javascript on a page if it’s not a Google AMP Stencil template file. Check out Partner Artic Leaf’s solution.
- NJ is seeking the best practice when using Stencil utils to add multiple items to the cart in succession. View a code sample for setting a delay so the function waits before adding each item.
Can’t Miss Conversations
- User mrself wants to know about available Handlebars helpers in Stencil. With helpers, you can easily manipulate Stencil data, CDN content and more on the Storefront. Learn more in the thread on GitHub.
Share a Solution
- Omar Habash’s server is querying the BigCommerce API and the error response he’s seeing is in gibberish! Looks like it could be an encoding issue. Jump in and share your solution.