A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Snippets

Code snippets are often a good way to add minor functionality without the need for extra plugins. The code should be added to either the functions.php file in a child theme, or into a plugin that you have added specifically for that purpose.

For more on child themes refer to this page: https://www.classicpress.net/blog/creating-a-child-theme/

You can download a basic Classic Commerce snippet plugin here: cc-snippets.zip
This plugin contains  a few snippets to get you started. Install the plugin it and activate it in the usual way. Then delete the snippets you don’t need and add others as required.

The code samples below are divided into three broad categories:

  • Add or apply snippets add extra functionality.
  • Modify snippets change the way some existing processes work.
  • Remove or hide snippets take away some existing functionality.

You can search for snippets by using the tags.

✓ = tested on ClassicPress 1.2.0


ADD OR APPLY (33)

MODIFY OR CHANGE (33)

REMOVE OR DISABLE OR HIDE (28)