Shopify Theming
Placeholder for Shopify theming documentation.
Shopify documentation.
The Shopify module provides seamless integration between Drupal and Shopify.
You can sync your products, variants, etc through a few different ways. Using the administration page at /admin/shopify/sync you can pull in products and collections on demand, set up the frequency which cron pulls in the data or use webhooks to capture changes instantly. Follow the instructions on the webooks admin page at /admin/shopify/webhooks
All product fields including images are available for customization, inclusion in your own Views, etc. The Shopify module ships with two default Views of its own. One is for browsing products, tags and collections, the other is for use as a menu for collections. Collection images and descriptions will appear at the top of the collection Views pages.. Using these Views your store will naturally be organized using Shopify's interface.
Watch a quick tutorial video.
The webhooks interface makes it easy to connect Shopify with your site and keep everything up to date. Just use the form at admin/shopify/webhooks and enter your hostname. The form will register the webhooks with Shopify and let you know which webhooks which environments are listening for. Product and Collection webhooks have been implemented in the module to do the obvious jobs of updating, creating and deleting products and collections. You can also implement your own hooks like: HOOK_shopify_webook_products_create When a webhook is registered the module lets you know what to call your hook if you want to listen in code for these events.
Using Drush, you can easily and remotely sync your Shopify products, query product information, and run API commands.
Valid commands include shopify-products, shopify-sync, and shopify-api.
To sync products or collections, simply run:
> drush shopify-sync products
> drush shopify-sync collections
To view products that have been synced to your site, you can run:
> drush shopify-products
You can apply various options to the query, such as changing the number of products to return:
> drush shopify-products --limit=100
To run API calls, you can use:
> drush shopify-api get products will return all product data.
> drush shopify-api get shop will return shop information.
> drush shopify-api get product/5/variants --options="fields=variant_id,title" will get product #5 variants and only return the variant_id and title fields.
Watch a quick tutorial video.
The module provides a simple Shopify online theme generator. The purpose of the theme generator is to strip out most components of Shopify's default online store, since your Drupal site handles this now, but users will be visiting the Shopify online store to manage their cart contents. The theme generator also creates redirects so that if a user attempts to view a product in the Shopify online store it redirects to that product in your Drupal store. This functionality is created using the current hostname of your site so you may need to re-export the theme or update the redirects if your site moves hostnames. The theme generator does not try to create a matching Shopify theme based on your Drupal theme,
Placeholder for Shopify theming documentation.