Giter VIP home page Giter VIP logo

magento-1's Introduction

Magento ===================

This is a simple gem which wraps Magento XMLRPC calls with Ruby classes. This allows for you to integrate your Magento Shopping Cart into your Rails Application. This is not fully tested and some functionality is a WIP.

The full Magento Core Api is available at www.magentocommerce.com/support/magento_core_api

The current supported resources are:

Category
Country
Customer
CustomerAddress
CustomerGroups
Inventory
Invoice
Order
Product
ProductImages
ProductTypes
Region
Shipment

Usage =====================

Edit config/config.yml and add your magento api username and api key to the file.

Get a single customer with an ID of 1

customer = Magento::Customer.find("1")

# all attributes are available now as array indexes

customer['firstname'] => "Tim"
customer['lastname'] => "Matheson"

# and so on

Issues ====================

A patch needs to be applied to XMLRPC for this to work. Without the patch you will most likely get this error. “wrong/unknown XML-RPC type ‘nil’”

Locate the xmlrpc gem on your system.

Edit the config.rb file, find it in your system, locate the gem directory.

Around line 23

change to this

ENABLE_NIL_PARSER    = false

to this

ENABLE_NIL_PARSER    = true

This will prevent the parser from raising exceptions when nil nodes are returned.

magento-1's People

Watchers

 avatar  avatar

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.