Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/snipcart/snipcart-wordpress-plugin

Wordpress plugin that adds Snipcart product post type and settings.
https://github.com/snipcart/snipcart-wordpress-plugin

ecommerce snipcart wordpress wordpress-plugin

Last synced: about 2 months ago
JSON representation

Wordpress plugin that adds Snipcart product post type and settings.

Awesome Lists containing this project

README

        

_This repository is deprecated and not maintained anymore. Please take a look at [this blog post](https://snipcart.com/blog/why-we-re-abandoning-support-for-our-wordpress-plugin) to know why._

_We also suggest reading [this Scotch.io blog post](https://scotch.io/tutorials/full-e-commerce-integration-of-snipcart-with-wordpress) to achieve a full, solid integration of Snipcart within WordPress._

Snipcart Wordpress Plugin
=========================

This plugin adds a new post `Product` type (like `Post` and `Page`) and a setting page.

The `Product` type contains additional fields used by Snipcart, like the price and product ID. Also, the title is used as the name of the product and the featured image as the product image.

The setting page is where you set you API key. You can also decide if you use shipping or not.

On the public side, the plugin adds an _Add to Cart_ button.

## Installation

Download the plugin from .

Copy the folder `snipcart` contained in the zip file into the `wp-content/plugins` folder. In the admin, go to the _Plugins_ section. You should see _Snipcart_ there. Click _Activate_.

You should now have a new _Product_ type in the left column, near _Posts_ and _Pages_. Also, you should have a new page in _Settings_ named _Snipcart_.

## Integration in themes

The actual type that is added for a product is `snipcart_product`.

## Development

This section is for developers who contribute to this plugin.

### Locales

When editing PHP files, you have to regenerate the POT file.

./utils/generate-pot-file.sh

When the POT file has been generated, you can merge with existing PO files.

./utils/merge-po-file.sh fr_FR

When all the PO files are ready, you can generate the MO files.

./utils/generate-mo-files.sh

### Building the zip to distribute

This will generate the MO files, then zip the plugin into `snipcart-wordpress-plugin.zip`.

./utils/build.sh