If you are currently starting to work or have been working with shopify, you may be pretty well aware about the limitations of shopify. Shopify just allows us to modify their template and do basic functioning but there are lots of features and processing that an e-commerce store require which shopify doesn’t provide by default. So basically shopify doesn’t provide us the flexibility to do server side programming or processing. We are bounded to the frontend data manipulation only.
This limitation have led most of us to scratch our head on either to choose the platform iteself or not for our store development. So as a developer we all have a question that either or not we are able to incorporate additional functionality to shopify or not which requires the server or backend processing.
Actually you may have been led to this post with same question in mind as there are not much resource found over internet on this topic and the shopify support themselves don’t provide much information on this level of customization.
So the answer to your question “Are we able to enhance or incorporate the additional functionality in shopify?” is YES!!
So the immediate question that arises in your mind is HOW??
It’s actually a separate middleware system or some server side code like PHP hosted on a different server and we sending an AJAX request to that middleware system from shopify. In response to that AJAX request we get the processed data from the serverside code which then can be used with our shopify store.Later we can manipulate and use that data.
The simple example would be to allow customer choose order/shipping related option according to their postcodes. The flow could be customer needs to choose the delivery day during checkout (in cart page). So our middleware stores all the information of delivery days associated with the postcode and when the customer types in the postcode on shopify we send an AJAX request and get those dates and make the available delivery day selectable.
This is a basic example, you can think of as many implementation as you can using this way.
This tutorial covers the basic, I will go in details on how to actually do this i.e send across domain AJAX request in shopify in my next post.