Download the PHP package long-blade/shopify-plugin without Composer
On this page you can find all versions of the php package long-blade/shopify-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download long-blade/shopify-plugin
More information about long-blade/shopify-plugin
Files in long-blade/shopify-plugin
Package shopify-plugin
Short Description Shopify plugin for CakePHP
License MIT
Homepage https://gitlab.sld.gr/mmavroforakis/shopify-plugin
Informations about the package shopify-plugin
Shopify plugin for CakePHP
A shopify plugin that interacts with shopify api
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
Last, you need to load the plugin to your project!
Site object
In order to interact with the plugin you need to create a site object with the minimum require data.
This object is injected to the constructor on each resource class.
Resources
Shop
The resource lets you retrieve information about the store but doesn't let you update any information.
Response will be an array. Shop properties
Product
The Product resource lets you update and create products in a merchant's store.
How to fetch info about products:
How to create a new Product:
You can also export to json file the response of a product query like so:
This will export the response object to a json file in a location specified in the Shopify/config/bootstrap.php file:
Inventory
An inventory level represents the available quantity of an inventory item at a specific location.
How to Set availability for a product:
How to Adjust the available quantity of an inventory item by 5 at a single location:
Order
An order is a customer's completed request to purchase one or more products from a shop.
How to Retrieve a list of orders:
Smart Collections
The Collect resource is used to connect a product to a smart collection. However, these collects can't be added or removed from the API as they're managed by the rules of the smart collection.
How to get the collection a product belongs to: