Giter Site home page Giter Site logo

laravel-magento-integration's Introduction

laravel-magento-integration's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-magento-integration's Issues

Convert response to associative aary

I have tried to convert response to associative array without prepending *. But it returns null in case of

json_decode(json_encode($result), true);

and shows error when trying

$result->toArray();

Product update "Array to string conversion" error

Getting product lists and info are working perfectly for me. But I can't seem to get update functions to work - always giving me "Array to string conversion" error because of the multiple arguments.

If I only use one argument, the $productId, $result returns true. I've also tried catalogProductUpdate with the same result.

Am I doing something wrong here?

As a side-issue I have tried customerCustomerUpdate (for example) which returns true even with multiple arguments - but when I login and look at the list of customers on Magento admin nothing has changed?

If anyone can point me in the right direction that would be great.

e.g.

$sessionId = Session::get('magento'); // this was stored earlier
$productId = '6333'; // example SKU or ID
$params = array(
  "qty" => "1",
  "is_in_stock" => 1
);
$result = Magento::catalogInventoryStockItemUpdate($sessionId, $productId, $params);

Error cannot find parameter

Hi!

I'm trying to use your lib with laravel 4.2 but everytime I use a method like

var_dump( Magento::getMagentoVersion(optional $connection) );

I get a JSON like:

{
  "code": 500,
  "message": "Error cannot find parameter"
}

The stack trace is:

[2016-01-22 12:12:35] production.ERROR: exception 'Tinyrocket\Magento\Connections\MagentoSoapClientException' with message 'Error cannot find parameter' in /var/www/html/api.gamelife.it/vendor/tinyrocket/magento/src/Tinyrocket/Magento/Connections/MagentoSoapClient.php:112
Stack trace:
#0 /var/www/html/api.gamelife.it/vendor/tinyrocket/magento/src/Tinyrocket/Magento/Connections/MagentoSoapClient.php(82): Tinyrocket\Magento\Connections\MagentoSoapClient->__call('login', Array)
#1 /var/www/html/api.gamelife.it/vendor/tinyrocket/magento/src/Tinyrocket/Magento/Connections/MagentoSoapClient.php(82): Tinyrocket\Magento\Connections\MagentoSoapClient->login('cidiverte', 'gamelife')
#2 /var/www/html/api.gamelife.it/vendor/tinyrocket/magento/src/Tinyrocket/Magento/Magento.php(232): Tinyrocket\Magento\Connections\MagentoSoapClient->__construct(Array)
#3 /var/www/html/api.gamelife.it/bootstrap/compiled.php(3265): Tinyrocket\Magento\Magento->getMagentoVersion()
#4 /var/www/html/api.gamelife.it/app/controllers/MagentoController.php(14): Illuminate\Support\Facades\Facade::__callStatic('getMagentoVersi...', Array)
#5 /var/www/html/api.gamelife.it/app/controllers/MagentoController.php(14): Tinyrocket\Magento\Facades\Magento::getMagentoVersion()
#6 [internal function]: MagentoController->index()
#7 /var/www/html/api.gamelife.it/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)
#8 /var/www/html/api.gamelife.it/bootstrap/compiled.php(5847): Illuminate\Routing\Controller->callAction('index', Array)
#9 /var/www/html/api.gamelife.it/bootstrap/compiled.php(5835): Illuminate\Routing\ControllerDispatcher->call(Object(MagentoController), Object(Illuminate\Routing\Route), 'index')
#10 /var/www/html/api.gamelife.it/bootstrap/compiled.php(5040): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'MagentoControll...', 'index')
#11 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#12 /var/www/html/api.gamelife.it/bootstrap/compiled.php(5398): call_user_func_array(Object(Closure), Array)
#13 /var/www/html/api.gamelife.it/bootstrap/compiled.php(5065): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#14 /var/www/html/api.gamelife.it/bootstrap/compiled.php(5053): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#15 /var/www/html/api.gamelife.it/bootstrap/compiled.php(715): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#16 /var/www/html/api.gamelife.it/bootstrap/compiled.php(696): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#17 /var/www/html/api.gamelife.it/bootstrap/compiled.php(7825): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#18 /var/www/html/api.gamelife.it/bootstrap/compiled.php(8432): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#19 /var/www/html/api.gamelife.it/bootstrap/compiled.php(8379): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#20 /var/www/html/api.gamelife.it/bootstrap/compiled.php(11088): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#21 /var/www/html/api.gamelife.it/bootstrap/compiled.php(657): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#22 /var/www/html/api.gamelife.it/public/index.php(49): Illuminate\Foundation\Application->run()
#23 {main} [] []

I'm doing something wrong?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.