Jump to content

JSON to Smarty tpl


Recommended Posts



I have no idea have to do this. I just started using JSON.

I have 2 products (currently) that I retive by json.

Right now I have some test divs  / data directly writen in the JS file.

What I want to do i to create a tpl file with the design for my product list. And then populate that with the data from JSON.

I tried googling it, but all I find is answers to switch template engine or google it...


Can anyone give me some example to point me in the right direction?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...