Documentation for the Sale Flash Customizer for WooCommerce plugin.

Documentation for Sale Flash Customizer for WooCommerce Plugin

Author: WPFactory PluginsVersion: 1.3.1Updated: 11 months ago
Requires WordPress version: 4.4Tested up to WordPress version: 6.2

Settings

 

Sale Flash Customizer for WooCommerce plugin lets you take full control of product sale flash in WooCommerce. For example you can display discount amount and/or discount percent values instead of simple Sale! text:

Before After
Sale Flash Customizer for WooCommerce - Frontend - Before Sale Flash Customizer for WooCommerce - Frontend - After

To achieve the results as in example above, you need to set your sale flash template in plugin options to:

<span class="onsale">[alg_wc_sfc_discount before="-"][alg_wc_sfc_discount_percent before=" (" after="%)"]</span>

instead of standard/default:

<span class="onsale">Sale!</span>

Main Features

  • set sale flash globally,
  • set sale flash per product,
  • set sale flash per category,
  • set sale flash per tag,
  • hide sale flash everywhere,
  • hide sale flash on archives (categories) only,
  • hide sale flash on single page only,
  • use shortcodes in sale flash:
    • [alg_wc_sfc_discount],
    • [alg_wc_sfc_discount_percent],
    • [alg_wc_sfc_sale_price],
    • [alg_wc_sfc_regular_price],
    • [alg_wc_sfc_meta key="your_cusom_field"],
  • WPML and Polylang compatible (with [alg_wc_sfc_translate] shortcode).

Sale Flash Customizer Options

Plugin settings are located in “WooCommerce > Settings > Sale Flash Customizer”.

All Products

This section sets sale flash options for all products at once.

Sale Flash Customizer for WooCommerce - All Products Options

All products
Enables/disables “All products” section.
Default: no
Sale flash
Sale flash template. You can use HTML and/or shortcodes here.
Default:

<span class="onsale">Sale!</span>
Hide everywhere
Hides sale flashes on all pages.
Default: no
Hide on archives (categories) only
Hides sale flashes on archives (categories) pages only.
Default: no
Hide on single page only
Hides sale flashes on single product pages only.
Default: no

Per Product

This section allows you to set sale flash on per product basis.

Sale Flash Customizer for WooCommerce - Per Product Options

Per product
Enables/disables “Per Product” section. This will add meta box to each product’s edit page.
Default: no

Sale Flash Customizer for WooCommerce - Product Meta Box

Per Category

This section allows you to set sale flash on per product category basis.

Sale Flash Customizer for WooCommerce - Per Category Options

Per category
Enables/disables “Per category” section.
Default: no
Categories
Select categories for which you wish to set individual sale flash for. Save changes after updating this option – new settings fields will appear.
Default: None
Category X
Sale flash template for product category X. You can use HTML and/or shortcodes here.
Default:

<span class="onsale">Sale!</span>

Per Tag

This section allows you to set sale flash on per product tag basis.

Sale Flash Customizer for WooCommerce - Per Tag Options

S

Per tag
Enables/disables “Per Tag” section.
Default: no
Tags
Select tags for which you wish to set individual sale flash for. Save changes after updating this option – new settings fields will appear.
Default: None
Tag X
Sale flash template for product tag X. You can use HTML and/or shortcodes here.
Default:

<span class="onsale">Sale!</span>

WPML / Polylang Compatibility

You can translate text in sale flash with [alg_wc_sfc_translate] shortcode:

Simple form:

[alg_wc_sfc_translate lang="DE" lang_text="Verkauf!" not_lang_text="Sale!"]

More complex form:

[alg_wc_sfc_translate lang="DE"]Verkauf![/alg_wc_sfc_translate][alg_wc_sfc_translate not_lang="EN"]Sale![/alg_wc_sfc_translate]