Post by szilard.kun » Fri Nov 24, 2017 4:29 am

Hi,

I use Opencart 1.5.6.4. I would like to create a feed url that show the total number of orders on my store.

For example:
www.mystore.com/totalfeed

And the result show is in json format:
{"number":5226}

How can I create this feed?

Thanks,
Szilard

Newbie

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by straightlight » Fri Nov 24, 2017 4:35 am

Your route information is quite vague. What would be the original route name where the feed would be targeted to in order for JSON to return the results from Ajax and from which TPL filename and folder would the query originate from?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by szilard.kun » Fri Nov 24, 2017 4:45 am

So, I think, we can use the default Opencart routing for this, not need custom URL.

I'd rather describe what I need. I'd like to buy a device, that shows the number of purchases in real time. This is it: http://www.smiirl.com/en/counter/custom#5D

And for this syncronisation, this device need to get data from a link in my store in json format. For example: http://api.smiirl.com/number

I want to syncronise the total number of orders.

Thanks,
Szilard

Newbie

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by straightlight » Fri Nov 24, 2017 4:59 am

You will have to provide more accurate information in order to obtain solutions to your inquiry.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by szilard.kun » Fri Nov 24, 2017 5:07 am

OK. I try to write this:
I need a little code, vqmod or php modification, that create a link with the following information:
I want to get back only this:
{"number": total number of orders in my store}

Of course, if there are a freelancer or other Opencart developer, I waiting an offer for this little work.

Thanks,
Szilard

Newbie

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by straightlight » Fri Nov 24, 2017 5:14 am

Of course, if there are a freelancer or other Opencart developer, I waiting an offer for this little work.
PM sent.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by szilard.kun » Fri Nov 24, 2017 5:28 am

I checked my Inbox, but unfortunately I did not get it. Can you send it again?

Newbie

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by straightlight » Fri Nov 24, 2017 6:05 am

I was actually asking over PM if you could provide your project so to see more in details what you are trying to achieve due to the limited information you provided above.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Google [Bot] and 170 guests