Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/snipcart/snipcart-wordpress-plugin
- Owner: snipcart
- License: mit
- Created: 2013-07-18T12:17:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-31T23:57:32.000Z (over 8 years ago)
- Last Synced: 2023-08-02T05:52:38.023Z (over 1 year ago)
- Topics: ecommerce, snipcart, wordpress, wordpress-plugin
- Language: PHP
- Size: 44.9 KB
- Stars: 15
- Watchers: 12
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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