Skip to content

Commit

Permalink
bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapha committed Jun 22, 2016
1 parent 29ed1a7 commit ed8550e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Classes/AmazonCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ private function readyConfig ()
],

// Default service URL
'AMAZON_SERVICE_URL' => 'https://mws.amazonservices.com/',
'AMAZON_SERVICE_URL' => Setting::get('amazonServiceUrl'),

'muteLog' => false
];
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/AmazonProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ protected function genHierarchy($xml)
* See <i>getData</i>.
* @return array Huge array of Product data.
*/
public function getProduct()
public function getProductData()
{
return $this->getData();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/AmazonProductList.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* that match the given product IDs. In order to do this, both the ID type
* and product ID(s) must be given.
*/
class AmazonProductList extends AmazonProductsCore implements \Iterator
class AmazonProductList extends AmazonProductsCore implements Iterator
{
private $i = 0;

Expand Down
7 changes: 2 additions & 5 deletions src/Classes/AmazonProductsCore.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Mws\Laravel;

use Config;
use Mws\Laravel\AmazonCore;

/**
Expand Down Expand Up @@ -48,17 +49,13 @@ public function __construct($s, $mock = false, $m = null, $config = null)
{
parent::__construct($s, $mock, $m, $config);
include($this->env);
if (file_exists($this->config)) {
include($this->config);
} else {
throw new Exception('Config file does not exist!');
}

if (isset($AMAZON_VERSION_PRODUCTS)) {
$this->urlbranch = 'Products/' . $AMAZON_VERSION_PRODUCTS;
$this->options['Version'] = $AMAZON_VERSION_PRODUCTS;
}

$store = Config::get('amazon-mws.store');

if (isset($store[$s]) && array_key_exists('marketplaceId', $store[$s])) {
$this->options['MarketplaceId'] = $store[$s]['marketplaceId'];
Expand Down

0 comments on commit ed8550e

Please sign in to comment.