Skip to main content
Version: 1.0.0

YSCP Commands

YSCP provides a suite of commands to efficiently manage ecommerce data and details within your Craft CMS environment.

Validating Database Schema

php craft yui/plugin/validate

This command validates all the database tables and columns/column types in YSCP.

tip

To run the command in verbose mode, use: php craft yui/plugin/validate 1

Initializing Default Data

php craft yui/plugin/init-data

This command inserts the default shipping and payment methods:

Payment Methods:

  • Bank Transfer with 0 price
  • Cash On Delivery with 0 price

Shipping Methods:

  • Carrier with 0 price

Initializing Holidays

php craft yui/plugin/init-holidays

This command inserts the Slovak (SK) holidays into the shipping delivery holidays section.

Sitemap Commands

Updating Sitemap

php craft yui/sitemap/update

This command inserts or updates the product URLs in the sitemap.

warning

This command works only when the Craft CMS SEO plugin is installed. By default, it is installed with YSCP, but it can be removed manually.

Resetting Sitemap

php craft yui/sitemap/reset

This command removes all product URLs from the sitemap.

CRON Commands

Installing CRON Jobs

php craft yui/cron/install

This command installs the crontab, which will run according to its configuration.

Reset Commands

These commands are used for resetting specific data.

warning

Resetting is permanent and cannot be undone. Ensure you back up your database before proceeding.

Resetting Orders

php craft yui/reset/orders

This command resets all orders, ordered items, and order history.

Resetting Products

php craft yui/reset/products

This command resets all the products in your store.

Resetting Customers

php craft yui/reset/customers

This command resets all customers, wishlists, subscriptions.