New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adezandee/shopify-bundle

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adezandee/shopify-bundle

Symfony2 Bundle to interact with a Shopify Store (API Call)

symfony-bundle
Source
Packagist
Version
dev-master
Version published
Total downloads
18
Maintainers
1
Created
Source

ShopifyBundle

Build Status Scrutinizer Code Quality Code Coverage Total Downloads License

Symfony2 Bundle to interact with a Shopify Store (API Call)

Configuration

After installing the bundle, you'll need private api key and password of your shopify shop and add it in your config file: http://docs.shopify.com/api/tutorials/creating-a-private-app

# app/config/config.yml

shopify:
    api_key:    "%shopify_api_key%"
    password:   "%shopify_password%"
    secret:     "%shopify_secret%"
    domain:     "%shopify_domain%"

Basic Usage

This bundle provide a mapping of Shopify object and allow you to create / update / delete items of your shopify store through API call.

# AcmeBundle/Controller/DefaultController.php

    public function newProductAction()
    {
        $product = new Product();
        $product
            ->setTitle('Test Product1')
            ->setBodyHtml('Body Test Product1')
            ->setProductType('Test')
            ->setVendor('symfony')
        ;

        $product = $this->get('shopify.product_exporter')->export($product);

        // Now you can persist locally that you created a shopifyProduct
        // with $product->getId();
    }

Keywords

shopify

FAQs

Package last updated on 27 Apr 2014

Related posts