Giter Site home page Giter Site logo

techborder / snipcart-wordpress-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snipcart/snipcart-wordpress-plugin

0.0 2.0 0.0 267 KB

Wordpress plugin that adds Snipcart product post type and settings.

License: MIT License

PHP 92.90% CSS 3.52% Shell 3.58%

snipcart-wordpress-plugin's Introduction

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 http://wordpress.org/plugins/snipcart/.

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

snipcart-wordpress-plugin's People

Contributors

antoineleclair avatar couellet avatar

Watchers

James Cloos avatar David Regal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.