gplcart/demo

Demo content for your GPLCart store

Maintainers

Details

github.com/gplcart/demo

Source

Issues

Installs: 2

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:gplcart-module

dev-master 2018-03-09 14:09 UTC

This package is not auto-updated.

Last update: 2024-04-13 17:30:15 UTC


README

Build Status Scrutinizer Code Quality

Demo is a GPL Cart module that allows superadmin to populate blank stores with realistic content such as products, categories, banners etc. It's a great way to test different themes and present your sites to clients. When you don't need demo anymore you can easily delete all the created data with only one click!

Features:

  • Supports any number of demo packages
  • You can add more packages from a module
  • You can remove created content any time in just one click
  • Command line support

Extending:

Use hook module.demo.handlers

CLI commands

  • php gplcart demo-create - create a demo content
  • php gplcart demo-delete - delete an existing demo content

The following options available for both commands:

  • --store - Numeric store ID, defaults to 1
  • --package - Package (handler) ID, defaults to default

Note:

  • Only super admin can create/delete demo content from UI
  • Don't forget to disable the module on production to prevent conflicts with store settings

Installation

  1. Download and extract to system/modules manually or using composer composer require gplcart/demo. IMPORTANT: If you downloaded the module manually, be sure that the name of extracted module folder doesn't contain a branch/version suffix, e.g -master. Rename if needed.
  2. Go to admin/tool/demo and create demo content