Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am using OpenCart for development.
I have affiliate API of Amazon,ebay,Flipkart and Snapdeal. I want to combine all API results to my web page with pagination. Like this website https://www.compareraja.in/mobiles.html.
My question is :
Should I save all API results in the database.?
Is there any method to combine all API results in a shuffled manner and display 1st 10 results then next 10 on load more option.
Yes, you should save all api results in database like you add product in admin panel. because there is some limitation to call api, for example limit of 5 call per second. what happen if your site traffic exceed api call limit, so always save api result to database for better performance. You should consider InterStore extension for plug & play solution.
If you have imported products from api to database, you don't need to create pagination because opencart already have this functionality
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i am building an ecommerce app for my website. This is the first time i am developing an app. As of now i am making use of phone gap to do the work for me. But i am stuck at this particular place, i have made the cart and it is working fine and i have made the checkout form also separately. But i don't know how to pass the product information from the cart to the checkout flow and then update it in the database. As of now i am sending the product parameters through the url but i know it is not safe. and i make use of
location.search.string(1)
to get all product parameter from the cart and then attach these to the form data and send it to the php file and from there i add it to the database. Again in the database i am having another problem. I am maintaining two different table, one for the orde information and the other for products. But here the problem is i don't know how to link the two table i.e when a new order is created an order id is assigned to it, now i don't know how to get that order id and use that order id to update the product information in product table. So can some one help me out with these two problems.
I am using jquery and html to create the app and php and mysql for the server side.
thanks in advance.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
i have this Mobile app built with android where data is stored in the server using PHP and MySQL.
Android - Mobile App
PHP - API
MySQL - Database
In Mobile App, we have newsfeed. We have already 150 datas. We recoded the time, its loading 20secs of 150 datas.
Im thinking that i should load only first 10 datas and when scroll down, loads another.
What do you suggest?
Another question. Does MySQL Join makes the query fast?
Yes you can fetch the small chunk of data. For a this you need to handle the query in such a manner that it accept a page number for the data.
For example if you are fetching the record 1-10, you will pass the page number 1 and accordingly you will get a result.
Also you make use of Endless Adapter in your android app
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Currently im working on task where i initially need to fetch media from instagram with specific hashtag and populate those info into database. After that, each new media published on instagram side (containing specific hashtag) needs to be fetched again and populated into database.
Of course i can accomplish this one using cron job (checking specific hashtag and number of media for that hashtag each 10 mins for example), but im wondering does instagram have "hooks" implemented for these kind of things. So for example, if something is published on instagram side, hook will be triggered and call will be sent to specific url provided within instagram dev app?
You should check out Instagram's Real-time API's: http://instagram.com/developer/realtime/
They allow you to subscribe and receive new contents via push updates. (uses pubsubhubbub)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I need to create pagination and it should not have page numbers as if I have it then I need to load all data at page loading.(I was ordered to do so)
I am little bit lost. Don't know where to start Even a little help is highly appreciated.
using zend framework 2(MVC)
new to php and zend
Prefer not to use library
I am assuming, What you mean is that you cannot have page numbers listed with the results on your page, but just a forward and a back button. You keep track of what offset/limit results are being currently viewed by user, and depending on if the user clicks back/forward, you will send an appropriate request to server with offset and limit as parameters. The server based on php/Zend should return results based on this offset and limit.
I have had a precursory look at Zend Pagination and it seems to me that it should work for you.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
i want to add an item to ebay using ebay API and PHP i read their website for hours and i'm lost. i created a developer account. but what should i do after that? i read about "Add item" call http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddItem.html but i have no idea on how to use that?
Please help !!
Please check this code here
https://github.com/rishiv3/ebayAddItem
I have made for adding new items on ebay also you can upload max 12 images with that and if needed you can store values on your database as well.
Just grab the keys from registering here
http://developer.ebay.com
Hope it will help you :)
In addition to taking a look at the eBay tutorial, I've thrown a wrapper around the eBay Accelerator toolkit that might be useful for some sample / example code.