Posted in Zencart December 19th, 2008 by admin - Comments (6)
This is the second part of the series “Zencart + Ajax made easy”, you can read the previous part here
In this second part we will continue to focus on the server-side code, we start by addressing how we should handle Zencart’s default redirection method, and then we will see how we can process only blocks of code we want to return while skipping the rest.
Read more…
Posted in Zencart December 16th, 2008 by admin - Comments (20)
Dynamic Url vs Static Url
Lets start by going back a few years to the dawn of the Internet, when PHP, ASP, or any type of server-side scripting language is still relative new or non-exist. Most websites around that time would have only a handful number of pages, each page is a html file with static url. A static URL is one that does not change, so it typically does not contain any url parameters. It can look like this:
http://www.example.com/index.htm
Updating and maintaining these pages can be very time consuming, since every single page has to be hard-coded.
Read more…
Posted in Zencart December 14th, 2008 by admin - Comments (6)
In the first part, I will address several server-side isses and possible solutions I encounter while trying to use Ajax in Zencart
- Which format should be used to return data?
- How to Implement ajax on current zencart pages/functions without breaking the default behaviors?
- How to allow fall-back to the traditional methods when the browser does not support javascript?
- How to load and return only certain parts to reduce load time(which is one of the main points of using Ajax anyway)
Lets use the contact us page as an example, throughout the tutorial we will build a simple Ajax based contact form.
Read more…
Posted in Zencart December 8th, 2008 by admin - Comments (5)
We are proud to announce our plan to publish Commercial Templates for ZenCart. Given the popularity of the software, it’s a shame that the only commercial templates available for ZenCart can only be found on TemplateMonster, which are badly coded and strongly recommended against by Zencart team.
The first template will be published in Jan 2009. Please check back later for more info.