Get a fast, conversion-focused WooCommerce theme in 2025. Switch to Shoptimizer.

Home Documentation Shoptimizer CommerceKit Using WP-CLI with CommerceKit

Using WP-CLI with CommerceKit

CommerceKit includes a suite of WP-CLI commands that allow you to quickly enable, disable, and manage its features without navigating through the WordPress dashboard. This is especially useful for developers, staging environments, or bulk configurations.

General Syntax

Most commands follow this format:

  • activate → Turns a feature on
  • deactivate → Turns a feature off

Available Commands

1. Ajax Search

Sub-options:

  • ajs-orderby-oos — Push out-of-stock items to the end of results.
  • ajs-other-results — Include posts and pages in search results.
  • ajs-fast-search — Faster results (excludes prices).
  • ajs-index-logger — Log Ajax Search index rebuilding.

2. Attributes Gallery


3. Attribute Swatches

Sub-options:

  • display-tooltips — Show tooltips on color/image swatches.
  • pdp-swatches — Swatches on product detail pages.
  • plp-swatches — Swatches on listing pages.
  • plp-quick-atc — Quick add-to-cart with swatches.
  • hide-loading-facade — Disable loading facade on PLPs.
  • hide-pdp-related — Hide swatches for related products and PDP menus.

4. Countdown Timers

Sub-options:

  • checkout-countdown — Timer on checkout page.
  • product-shortcode — Product countdown shortcode.
  • checkout-shortcode — Checkout countdown shortcode.

5. Free Shipping Notification

Sub-options:

  • fsn-cart-page — Show on cart page.
  • fsn-mini-cart — Show in mini cart.
  • display-notification — Show before shipping address.
  • fsn-shortcode — Enable shortcode.

6. Order Bump

Sub-options:

  • order-bump-mini-cart — Enable in mini cart.
  • multiple-mini-cart — Allow multiple bumps in mini cart.
  • order-bump-checkout — Enable on checkout.
  • multiple-checkout — Allow multiple bumps on checkout.
  • order-bump-shortcode — Checkout shortcode.

7. Product Badges

Sub-options:

  • new-display-catalog — Show “New” badge on catalog.
  • new-display-product — Show “New” badge on product page.

8. Product Gallery

Sub-options:

  • pdp-lightbox — Open images in lightbox.
  • pdp-video-autoplay — Autoplay product videos.
  • pdp-thumb-arrows — Enable thumbnail arrows.
  • pdp-featured-review — Show featured review.
  • gallery-shortcode — Enable shortcode.

9. Size Guides

Sub-options:

  • display-search-result — Make size guides searchable.
  • size-guide-shortcode — Enable shortcode.

10. Sticky Add to Cart

Sub-options:

  • sticky-atc-desktop — Enable for desktop.
  • sticky-atc-mobile — Enable for mobile.
  • sticky-atc-tabs — Expand product tabs.

11. Stock Meter

Sub-options:

  • stock-meter-shortcode — Enable shortcode.

12. Waitlist

Sub-options:

  • hide-oos-variation — Show hidden OOS variations.
  • force-email-name — Force “from” email/name.
  • waitlist-auto-mail — Auto-email when item is restocked.
  • wtl-not-stock-limit — Email even if signups exceed stock.
  • waitlist-admin-mail — Notify store owner of new signups.
  • waitlist-user-mail — Notify customer when they join waitlist.

13. Wishlist

Sub-options:

  • wishlist-shortcode — Enable shortcode.

14. Settings

Enable CommerceKit cache logger.


15. Import / Export

Show detailed logs in WooCommerce > Status > Logs.


16. Cache Management

Clear all CommerceKit caches, including Ajax Search index cache.

Example Usage

Success!

The discount has been applied. You will see it when you checkout.

There has been a problem

Unfortunately this discount cannot be applied to your cart.

$50
Off

Do you want a whopping $50 off Shoptimizer for WooCommerce?

Click the button below to get Shoptimizer for only $49. (Regular price: $99).
This is a special launch offer for today only.
Get it before it is gone!