WP Manifestindependent plugin directory
manifest / integrations / magento-api-soap

Magento API SOAP

A Wordpress plugin to integrate with Magento.

★ 2stars
v1.0.0latest · 11 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/elvishp2006/magento-api-soap/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A Wordpress plugin to integrate with Magento.

Settings

Setting

How to use!

use Magento\API\SOAP\Product;

//Get a single product by id.
$product_model = new Product( 1 );

$product_model = new Product();

//Get 4 products with status 1 randomly.
$products_model = $product_model->find(
    array(
        'max'            => 4,
        'random'         => true,
        'magento_filter' => array(
            'status' => 1,
            ),
        ),
);

//Iterate on products.
foreach ( $products_model->list as $product_model ) :
    $name      = $product_model->name;
    $price     = $product_model->get_formated_price();
    $thumbnail = $product_model->get_thumbnail();
    $permalink = $product_model->get_permalink();
endforeach;

You can also extend the Product class and create your own collection of products with custom fields:

class Book extends Product
{
    public $num_pages;
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License

Releases

1 release.

Tag
Published
v1.0.0 latest
Aug 3, 2015 11 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.