/******************  INSTALLATION  ********************/

There are 2 way to install this application on your opencart store:
1) VQMOD INSTALLATION (if you have VQMOD installed on your store) 
OR
2) MANUAL INSTALLATION (some small modification of opencart core files required)


/**************** 1 VQMOD INSTALLATION *******************/

!!! Note, that this type of installation requires VQMOD installed on your store

copy ALL from "upload" folder into your opencart installation root (the directory where your opencart is installed)
"Get product from Amazon" is now installed on your store

	
/**************** 2 MANUAL INSTALLATION *******************/

copy ALL from "upload" folder into your opencart installation root (the directory where your opencart is installed)
			 
open file /admin/controller/catalog/product.php
FIND: 
	public function insert() {
				   
REPLACE WITH: 
	public function insert() {
		$this->document->addScript('/getSingleProduct/js/amazon.js');
							
FIND: 
	public function update() {
				   
REPLACE WITH: 
	public function update() {
	$this->document->addScript('/getSingleProduct/js/amazon.js');
					

*** For opencart 2.x versions instead of insert() and update() functions change add() and edit() functions
	
	
/******************  SPECIAL CASES  ********************/

1) if your opencart store is installed NOT into the domain root folder ("public_html" folder as a usual), but in some subdirectory (for example http://yourdomain.com/store/), do the following:
	
	if you installed the extension via vQmod:
	open file /{YOUR_OPENCART_SUBFOLDER_LOCATION}/vqmod/xml/get_the_product_from_amazon.xml
	FIND: /getSingleProduct/
	REPLACE WITH: /{YOUR_OPENCART_SUBFOLDER_LOCATION}/getSingleProduct/ 
	
	if you installed it manually:
	open file /{YOUR_OPENCART_SUBFOLDER_LOCATION}/admin/controller/catalog/product.php
	FIND: /getSingleProduct/
	REPLACE WITH: /{YOUR_OPENCART_SUBFOLDER_LOCATION}/getSingleProduct/ 
	
WARNING: in case of installation in subfolder the images in description (not the main images) may not be shown correctly
		

	
/****************  USAGE *******************/
			 
	Now, go to admin panel -> catalog -> products -> insert 
	below the "Product Name" field in the General Tab you will see "Get product from Amazon" link
	
	
/****************  SETTINGS OF SAVING IMAGES  *******************/

By default this grabber will create the separate folder for each product and save all images relative to this product there
Separate folder will be created in the general directory for images (/image/data/ for opencart 1.x and /image/catalog/ for opencart 2.x)

If you don't want to create separate folders for each product:
 - open file /getSingleProduct/js/amazon.js
 - FIND: GetSingleProduct_amazon.separateFolderEachProduct = 1;
 - REPLACE WITH: GetSingleProduct_amazon.separateFolderEachProduct = 0;
 
Also, may be you will want to upload in a separate folder ALL images grabbed by this extension 
 - open file /getSingleProduct/js/amazon.js
 - FIND: GetSingleProduct_amazon.imageFolderName = "";
 - REPLACE WITH: GetSingleProduct_amazon.imageFolderName = "CHOOSEN LOCATION";
 
these 2 settings are independent from each other 
 