opencart calendar help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: opencart calendar help

Post by Celauran »

That second file is just echoing out some static values as JSON, so it isn't really helpful. What specifically are you having trouble with?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: opencart calendar help

Post by Celauran »

I don't really know OpenCart or the structure of your application, but I don't see what that JSON file really has to do with anything. If your calendar requires JSON input, your query method can just json_encode the results.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: opencart calendar help

Post by Celauran »

Again, hard to say for certain without digging into the code, but there's clearly a URL in the JS which references a JSON file. You should be able to leverage that, either by changing the file itself, or modifying the endpoint from which it reads its input. Was no documentation provided, or is none otherwise available?
Post Reply