Book Image

Shopify Theme Customization with Liquid

By : Ivan Djordjevic
Book Image

Shopify Theme Customization with Liquid

By: Ivan Djordjevic

Overview of this book

Shopify is one of the fastest-growing eCommerce platforms, which means developers familiar with the Liquid concept are needed now more than ever. This book will help you to build a solid foundation by enabling you to develop your skills from the ground up by gaining essential theoretical knowledge of Liquid and putting that knowledge to use through hands-on projects. Shopify Theme Customization with Liquid begins by helping you get to grips with basic Shopify information, its interface and theme structure, setting up your Partner account, and creating a child theme, which is essential when preparing for any future work on Shopify. You'll then explore Liquid core features that will provide you with a basic understanding of the Liquid programming logic needed to develop any feature. As you advance to the latest and advanced features, you'll learn about JSON settings, allowing you to create any type of static or dynamic section - a must-have for becoming a competent Shopify developer. Finally, the book takes you through the Shopify Ajax API to gain the necessary skills needed to create a variety of dynamic features and content. By the end of this Shopify book, you'll be able to take on challenging projects to showcase your theme customization expertise to your future employer.
Table of Contents (15 chapters)
1
Section 1: Shopify Explained
4
Section 2: Exploring Liquid Core
8
Section 3: Behind the Scenes
Appendix: Frequently Asked Questions

Introduction to the Shopify Ajax API

Ajax, or Asynchronous JavaScript and XML, is a method that we can use to exchange small amounts of data with the server and update the parts of any page, without the need to reload it in its entirety. So, what exactly is the Shopify Ajax API?

The Shopify Ajax API is a REST API endpoint through which we can send out requests to read or update certain information. For example, we can use a GET request to read the product or even the current cart data, or we can use a POST request to update the current content session of the cart.

Shopify Ajax is an unauthenticated API, which means that it does not require any tokens or API keys to gain access to store information. Shopify also provides us with an authenticated API named the Shopify Admin API, which apps and services use to communicate with Shopify servers.

Through the Shopify API, we can access most of our store data, whose responses will return JSON-formatted data, though we can't read...