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 |
---|---|
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.
- All products
- Enables/disables “All products” section.
- Default:
no
- Default:
- 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
- Default:
- Hide on archives (categories) only
- Hides sale flashes on archives (categories) pages only.
- Default:
no
- Default:
- Hide on single page only
- Hides sale flashes on single product pages only.
- Default:
no
- Default:
Per Product
This section allows you to set sale flash on per product basis.
- Per product
- Enables/disables “Per Product” section. This will add meta box to each product’s edit page.
- Default:
no
- Default:
Per Category
This section allows you to set sale flash on per product category basis.
- Per category
- Enables/disables “Per category” section.
- Default:
no
- Default:
- 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.
- S
- Per tag
- Enables/disables “Per Tag” section.
- Default:
no
- Default:
- 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]