Posts

Showing posts with the label PHP

Amazon Product Advertising API Integration Advance - Item | Product Search by Keywords with Script Code

Amazon Product Advertising API Integration Advance - Item/Product Search by Keywords Hopefully you are ready with all prerequisite for integrating Amazon Product Advertising API as per our Amazon Product Advertising API integration Basics We are now going to demonstrate how you can implement functionality to get/fetch the items/Products from Amazon Product Base as per your specified search keywords and specific category. You can provide “All” if you want to search the product within all the available item base. /* * This function will give you first 10 top seller items on the basis of keyword provided */ /*   * To handle item search   */ $amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, COUNTRY_CODE, AWS_ASSOCIATE_TAG); $amazonEcs->associateTag(AWS_ASSOCIATE_TAG); function getSearchResults($key) {     global $amazonEcs;     try {       ...

iPhone-iOS and Android push notification script - PHP code

Here I am presenting before you  - how to perform the push notification process with PHP code which I have recently gone through. Based on url GET parameter ( "type" ), the script will automatically execute the respective iOS or Android push notification process. //*** Android Push Notification if( isset($_GET['type']) && ($_GET['type'] == 'android')){ //*** Your API access key from Google Cloud Messaging( GCM ) define( 'API_ACCESS_KEY', 'YOUR GCM KEY' ); $registrationIds = array("YOUR DEVICE IDs" ); //*** Configure the bundle $msg = array (     'message'       => 'Your message for push.',     'title'         => 'Your title',     'subtitle'      => 'Your subtitle',     'tickerText'    => 'Your ticker text here',     'vibrate'   => 1,     'sound'     => 1 ); $fields = array (     'reg...

Gravity form tweaks and techniques

Gravity form tweaks Gravity form -  Multiple form instances on same page Sometime you need to call gravity form multiple times on the same page but this needs some amendments to the normal flow of gravity form. Here I am going to demonstrate  how you will meet this requirement. I have used one wp plugin "Gravity Forms: Multiple Form Instances" and done some modifications to facilitate the following requirement : 1- Need to make it work for a single form and leave rest as it is as most of the validation is based on the form ids. 2- In multiple form instance plugin random ids are generated to differentiate same form access as multiple instance. I have made it little simple by using sequential ids rather than random number. Like : Form id - 15 will be accessed over one page as 151, 152,153 and so on. Follow the below steps: 1- Perform below amendment in the function "gform_get_form_filter" definition in plugin file as under. public static $cnt = 0; self...

Magento - Customize 503 maintenance default error page

I am gonna tell you all the way to change Magento default 503 page view so that you can set your site on maintenance without thinking , your site is looking shit now. Just follow the below simple steps and its too easy : 1- Magento root has errors folder and inside the same you can see folder default . 2- When you open processor.php you see const DEFAULT_SKIN = 'default'. 3- Now change this const value from default to customskin ( i am assuming this as new skin name). 4- Copy all files from default folder to newly create folder customskin( under errors folder ) 5- Now change inside new skin phtml pages as per your need. 6- You may also edit local.xml as per your need. Stay Cool !! Thanks for your valuable comments and suggestions.

MWS (Amazon Marketplace Web Service) API Integration

Image
MWS (Amazon Marketplace Web Service) MWS is a web service API from amazon that provide facility to automate the data interchange between seller and amazon regarding inventory management, listing, order, reports, shipping, payments and more.   Automate the Feed upload( Product Upload) One need to follow the steps to automate the feed/product upload to amazon seller account that will be visible to amazon marketplace for sale: 1      Login to seller account via link : http://sellercentral.amazon.com/   ( US based seller ) 2      Go to Inventory->Add product via upload page and identify your file type to upload. Example: ‘Inventory Loader  File’ for uploading new feeds for all categories 3      Now you need a file template to upload as inventory updater. Important thing is now to decide which way you want to upload your feed upload process either via flat file or XML request . I cho...