Title: Khazaf Tools
Author: Sultan Husayan
Published: <strong>December 1, 2026</strong>
Last modified: December 1, 2026

---

Search plugins

![](https://ps.w.org/khazaf-tools/assets/banner-772x250.png?rev=3838595)

![](https://ps.w.org/khazaf-tools/assets/icon-256x256.png?rev=3838595)

# Khazaf Tools

 By [Sultan Husayan](https://profiles.wordpress.org/bysltanx/)

[Download](https://downloads.wordpress.org/plugin/khazaf-tools.1.1.0.zip)

 * [Details](https://wordpress.org/plugins/khazaf-tools/#description)
 * [Reviews](https://wordpress.org/plugins/khazaf-tools/#reviews)
 *  [Installation](https://wordpress.org/plugins/khazaf-tools/#installation)
 * [Development](https://wordpress.org/plugins/khazaf-tools/#developers)

 [Support](https://wordpress.org/support/plugin/khazaf-tools/)

## Description

Khazaf Tools adds six blocks and three options to WooCommerce stores. The free-shipping
bar reads its threshold from your WooCommerce shipping settings, and the delivery
promise, the WhatsApp button and the business details show what you write in them.

It is the companion plugin of the Khazaf Store theme. Built for block themes, and
tested with Khazaf Store and Twenty Twenty-Five. Its blocks take their colors and
sizes from the theme’s own presets. Its options are off, and its blocks absent, 
until you turn them on or insert them.

**Six blocks**

 * **Free Shipping Progress.** Shows how much more the cart needs for free shipping.
   The amount comes from the “Free shipping” method of the WooCommerce shipping 
   zone that matches the shopper’s address. When the zone has more than one, the
   bar follows the one the shopper reaches with the smallest amount added, counting
   the cart as each method does: before or after coupon discounts. When WooCommerce
   already gives the cart free shipping another way, such as with a free-shipping
   coupon, the bar says the order qualifies. The bar updates when the cart changes,
   in the mini-cart, the cart and the checkout. What is left is rounded up to the
   smallest amount your store charges, never down.
 * **Delivery Promise.** A line you write about delivery times or pickup, with an
   optional icon. It shows only what you type. By default it stays hidden on the
   page of a product that is out of stock or on backorder, going by the product’s
   stock status: a product with options counts as such only when none of its options
   is in stock. You can turn that off in the block.
 * **WhatsApp Button.** A plain link to a chat with your number on wa.me, with an
   optional prefilled message of up to 500 characters, line breaks included. The
   number can be typed with Arabic-Indic or Persian digits, with spaces and dashes,
   in the local form of your store’s country starting with 0, without that 0, or
   with the zero left in after the country code. A number of seven to ten digits
   with no country code is read as one of your store’s country, and the editor shows
   the number the button opens. Nothing from WhatsApp loads on your site. If you
   make it open a new tab, shoppers are told.
 * **Business Details.** Your commercial registration and VAT numbers, with an optional
   link to a public page where shoppers can check them. Nothing shows until you 
   type a number, and there is no link until you type an address.
 * **Sticky Add to Cart.** On phones, keeps the price and the Add to cart button
   at the bottom of the screen while the main button is out of view. It works through
   the page’s own add-to-cart form, so quantities and notices work as usual, and
   it shows the price as the page shows it. For a product with options, its button
   takes the shopper to the options on the page until those chosen make an option
   that can be bought; then it reads Add to cart and adds that option. It does not
   appear for grouped or external products, nor for products that are out of stock.
 * **Dark Mode Toggle.** Switches the site to the dark style variation of the active
   theme, and can follow the visitor’s device setting until they choose. With the
   toggle in a template part such as the header, the choice holds on every page,
   including pages without the toggle.

Three patterns combine the blocks: “Shipping, delivery and help”, “Business details
in the footer”, and “Business details and dark mode”.

**Three options**

Each is a checkbox that is off until you check it.

 * **The new Saudi riyal symbol** (WooCommerce  Settings  General). Shows the new
   symbol instead of “ر.س” on the storefront. See the next section.
 * **Arabic search** (WooCommerce  Settings  Products). A shopper who types «دلة»
   finds «دلّة». The storefront search ignores diacritics and the tatweel, and reads
   أ إ آ as ا, ى as ي, and ة as ه, in products, posts and pages. It covers the search
   form and the search results page; apps that search through the WooCommerce Store
   API get WooCommerce’s own search. WordPress’s own search still runs; this only
   adds matches, and lists items whose title matches first. It builds no index and
   compares the text at search time, so with a large catalog, try it on a copy of
   your store’s data before turning it on.
 * **Discounts on products with options** (WooCommerce  Settings  Products). WooCommerce
   shows a price range for a product with options, without the price before the 
   discount. With this on, the product shows “From” and the price of its cheapest
   option that can be bought (in stock, or taking backorders), with that same option’s
   regular price struck through, and the sale badge of WooCommerce’s blocks shows
   that option’s discount. When that option is not discounted, the range stays.

**The new Saudi riyal symbol**

The plugin prints the symbol as the Unicode character U+20C1 (SAUDI RIYAL SIGN, 
added in Unicode 17.0) and bundles no image or font of it, so the visitor’s own 
fonts draw it. Devices whose fonts do not include the character yet may show a box
instead.

 * **Position.** The symbol sits to the left of the number, with a space, in Arabic
   and in English, as the Saudi Central Bank’s guideline asks, whatever your “Currency
   position” setting.
 * **Where.** On the storefront and in the WooCommerce Store API, which the cart,
   checkout and mini-cart blocks read. The dashboard, the emails WooCommerce builds,
   the REST API (wc/v3), scheduled tasks and WP-CLI keep the WooCommerce symbol.
 * **Screen readers.** On product cards and product pages the character is named“
   Riyal”, and in the text WooCommerce writes for screen readers beside a discounted
   price or a price range it becomes the word. In the cart, checkout and mini-cart,
   and in the fields of the price filter, WooCommerce builds the price in the browser
   from the bare character, which a screen reader names only if its speech data 
   already knows it.

**Accessibility**

 * Every control is a real button or link, reachable with the keyboard, with a visible
   focus outline from your theme.
 * The free-shipping bar is a labelled progress bar with a text value, and changes
   are announced politely.
 * While the sticky bar is showing, a field or link that takes focus is moved clear
   of it.
 * Links that open a new tab say so to screen readers and show an icon.
 * Animations respect the reduced-motion preference, and high-contrast modes keep
   the bar and the riyal symbol visible.

**Privacy**

Khazaf Tools does not track visitors, does not collect personal data and makes no
requests to other sites.

 * The free-shipping bar asks your own site (the `khazaf-tools/v1/free-shipping`
   REST route) for the visitor’s cart progress after the cart changes. The answer
   is built from the visitor’s own cart session.
 * The dark mode choice is saved in the visitor’s browser (localStorage, key `khazaf-
   tools-color-scheme`) and never leaves it. The plugin sets no cookie.
 * The WhatsApp button is a link. WhatsApp receives nothing unless the shopper follows
   it.
 * WooCommerce itself sets cookies for the cart and the session, and, from the first
   visit, cookies named sbjs_* for its Order Attribution feature. You can turn that
   feature off in WooCommerce  Settings  Advanced  Features.

Designed and developed by Sultan (https://bysltan.com/themes).

### External services

The plugin connects to no external service: no page loads anything from another 
site because of it, and it sends no data anywhere. The only request it makes goes
to your own site: after the cart changes, the free-shipping bar asks its `khazaf-
tools/v1/free-shipping` REST route for the visitor’s progress. Two blocks can show
links to outside services, and a link is followed only when someone clicks it.

**WhatsApp (wa.me)**

The WhatsApp Button links to wa.me, the click-to-chat service of WhatsApp LLC, so
shoppers can message the store. When a shopper clicks the button, their browser 
opens wa.me with the store’s phone number and, if the store owner wrote one, a prefilled
message. Nothing reaches WhatsApp before that click.

 * Terms of service: https://www.whatsapp.com/legal/terms-of-service
 * Privacy policy: https://www.whatsapp.com/legal/privacy-policy

**Saudi Ministry of Commerce (mc.gov.sa)**

In the editor, the Business Details block shows the address of the Ministry of Commerce’s
public commercial registration inquiry (https://mc.gov.sa/ar/eservices/Pages/Commercial-
data.aspx) as a hint, for store owners who want to add a verification link. The 
editor only displays the address: nothing is sent to the Ministry. If the store 
owner adds a verification link, the storefront shows it as a plain link, followed
only when a visitor clicks it.

 * Terms and conditions: https://mc.gov.sa/en/About/Pages/Terms-Conditions.aspx
 * Privacy and personal data protection: https://mc.gov.sa/en/About/Pages/Privacyandconfidentialityof-
   theinformation.aspx

### Copyright

Khazaf Tools WordPress Plugin, Copyright 2026 Sultan (https://bysltan.com/themes)

Khazaf Tools is distributed under the terms of the GNU GPL v2 or later.

This program is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY 
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. See the GNU General Public License for more details.

### Resources

Block icons
 Copyright 2026 Sultan License: GPLv2 or later, https://www.gnu.org/
licenses/gpl-2.0.html Drawn for this plugin.

Saudi riyal symbol: designed by the Saudi Central Bank (SAMA). The plugin bundles
none of its files; it prints the Unicode character U+20C1 (Unicode 17.0) in the 
visitor’s own font.

## Screenshots

[⌊Free Shipping Progress: how much more the cart needs for free shipping, from your
shipping settings.⌉⌊Free Shipping Progress: how much more the cart needs for free
shipping, from your shipping settings.⌉[

Free Shipping Progress: how much more the cart needs for free shipping, from your
shipping settings.

[⌊Delivery Promise: your own line about delivery times or pickup, with an optional
icon.⌉⌊Delivery Promise: your own line about delivery times or pickup, with an optional
icon.⌉[

Delivery Promise: your own line about delivery times or pickup, with an optional
icon.

[⌊WhatsApp Button: a plain link to a chat with your store on wa.me.⌉⌊WhatsApp Button:
a plain link to a chat with your store on wa.me.⌉[

WhatsApp Button: a plain link to a chat with your store on wa.me.

[⌊Business Details: your commercial registration and VAT numbers, with an optional
verification link.⌉⌊Business Details: your commercial registration and VAT numbers,
with an optional verification link.⌉[

Business Details: your commercial registration and VAT numbers, with an optional
verification link.

[⌊Sticky Add to Cart: the price and the Add to cart button kept at the bottom of
the screen on phones.⌉⌊Sticky Add to Cart: the price and the Add to cart button 
kept at the bottom of the screen on phones.⌉[

Sticky Add to Cart: the price and the Add to cart button kept at the bottom of the
screen on phones.

[⌊Dark Mode Toggle: switches the site to the dark style variation of your theme.⌉⌊
Dark Mode Toggle: switches the site to the dark style variation of your theme.⌉[

Dark Mode Toggle: switches the site to the dark style variation of your theme.

## Blocks

This plugin provides 6 blocks.

 *   Dark Mode Toggle A button that switches visitors to your theme’s dark style
   variation. Put it in the header or footer, and their choice holds on every page.
   It stays in their own browser.
 *   WhatsApp Button A plain link that opens a WhatsApp chat with your store number.
   No script or tracking from WhatsApp is loaded on your site.
 *   Free Shipping Progress Shows shoppers how much more they need for free shipping.
   The minimum comes from the Free shipping method in your WooCommerce shipping 
   settings, and the bar updates as the cart changes.
 *   Sticky Add to Cart On phones, keeps the product price and the Add to cart button
   at the bottom of the screen while the main button is scrolled away. Add it once
   to the single product template.
 *   Delivery Promise One or two lines you write about delivery times or pickup.
   They show as you write them, and by default hide on products that are out of 
   stock or on backorder.
 *   Business Details Your commercial registration and VAT numbers on one line, 
   with an optional link where shoppers can check them.

## Installation

 1. Install and activate WooCommerce.
 2. Upload the `khazaf-tools` folder to `/wp-content/plugins/`, or install the plugin
    from Plugins  Add Plugin.
 3. Activate Khazaf Tools.
 4. In the Site Editor, add the blocks where you want them. Places that work well:
 5.  * Free Shipping Progress: at the top of the Mini-Cart footer (in the Mini-Cart
       template part), under the Add to cart button in the single product template,
       or below the cart.
     * Sticky Add to Cart: once, anywhere in the single product template.
     * Dark Mode Toggle: in the header or footer template part. The visitor’s choice
       then holds on every page, including a checkout with a header of its own, as 
       in Khazaf Store.
     * Business Details: at the bottom of the footer and of the checkout footer.
 6. To use the new riyal symbol, go to WooCommerce  Settings  General and check “Saudi
    riyal symbol”. The two product options are at the end of WooCommerce  Settings  
    Products.

## FAQ

### The free-shipping bar does not show. Why?

It needs a “Free shipping” method that is enabled and requires a minimum order amount(“
A minimum order amount” or “A minimum order amount OR coupon”), in the shipping 
zone that matches the shopper’s address. Before the shopper gives an address, WooCommerce
uses the one set in WooCommerce  Settings  General  Default customer location, which
is your store’s country unless you changed it. A method that requires a coupon alone
sets no threshold, because the cart’s amount cannot reach it; when WooCommerce gives
free shipping through it, after a free-shipping coupon, the bar says the order qualifies.
A method that requires a minimum amount and a coupon counts once a free-shipping
coupon is applied. If the zone also has free shipping without any condition, every
order already ships free, so the bar stays hidden. The bar also hides for carts 
that need no shipping.

If the bar was not shown when the page loaded, because the shopper’s address was
in a zone without a minimum, it does not appear after they change the address at
checkout until the page reloads.

### Does the free-shipping bar count discounts and tax?

It counts the cart the same way WooCommerce does when it decides whether free shipping
is available, including the method’s “Apply minimum order rule before coupon discount”
setting. A fixed cart coupon larger than the cart is used up by the first amounts
added, so those count toward the amount the bar asks for. With a fixed discount 
per item, or a coupon limited to some products, what an addition counts depends 
on what the shopper adds, so the bar says how much the cart lacks after discounts
instead of an amount to add.

### Does the free-shipping bar work behind a page cache?

Yes. A page that shows a cart’s amounts tells caches not to store it, as WooCommerce
does for its cart pages. When a visitor still gets a page that was built for another
cart, or for an empty one, the bar notices and asks your site for that visitor’s
own progress. Only a visitor without JavaScript, behind a cache that stores such
pages anyway, would see what the stored page had.

### The dark mode toggle does not show. Why?

The toggle switches to a style variation of your theme with a dark background. It
shows nothing when the theme has none, or when the site already uses a dark style.
You can pick another dark variation in the block settings, which list only the dark
ones.

In a block theme, with the toggle in a template or a template part such as the header,
the visitor’s choice holds on every page of the site, including pages that do not
show the toggle. A toggle placed only in the content of a page or post applies on
the pages that show it.

### Why doesn’t the riyal symbol show on some devices?

The new Saudi riyal symbol is a Unicode character, U+20C1 (SAUDI RIYAL SIGN), added
in Unicode 17.0 (September 2025). The plugin bundles no image or font of the symbol,
so it shows only where the visitor’s own fonts include it. Older phones, computers
and fonts may show an empty box or a blank space instead, until their system updates
add the character. If many of your shoppers see a box, turn the option off to go
back to WooCommerce’s symbol.

### Can I keep the old symbol in PDF invoices, exports or my own emails?

The dashboard, WooCommerce’s emails and the REST API (wc/v3) keep it already. For
anything else that builds prices during a storefront request, such as an email that
is not built on WooCommerce’s email class, return false from the `khazaf_tools_replace_riyal_symbol`
filter in the code that builds it, and WooCommerce’s symbol and currency position
are used there. Some invoice plugins replace the symbol themselves: PDF Invoices&
Packing Slips for WooCommerce, for example, prints the currency code (SAR) by default,
and its `wpo_wcpdf_pdf_filters` hook is the place to add the filter.

### My theme has its own bar at the bottom of phone screens. Will the sticky bar cover it?

Not if the theme says how tall its bar is. The sticky bar sits above the height 
given in the CSS custom property `--site-bottom-bar-height`, which Khazaf Store 
sets for its mobile tab bar and any theme can set, or in the block’s own `--khazaf-
tools-sticky-offset`, which wins when both are set.

### Will my site break if I deactivate the plugin?

No. Its blocks are rendered on the server, so without the plugin they disappear 
from the storefront. The editor offers to remove them. The riyal symbol, the search
and the price of products with options return to WooCommerce’s defaults.

### Does the plugin add a settings page or notices?

No. Its settings are three checkboxes inside WooCommerce’s own settings: the riyal
symbol under General, and Arabic search and discounts on products with options under
Products. They are stored in one option, `khazaf_tools_settings`, which is removed
when you delete the plugin (from every site, on a multisite network).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Khazaf Tools” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ Sultan Husayan ](https://profiles.wordpress.org/bysltanx/)

[Translate “Khazaf Tools” into your language.](https://translate.wordpress.org/projects/wp-plugins/khazaf-tools)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/khazaf-tools/), check
out the [SVN repository](https://plugins.svn.wordpress.org/khazaf-tools/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/khazaf-tools/) by
[RSS](https://plugins.trac.wordpress.org/log/khazaf-tools/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.0

Released 28 November 2026.

 * Free Shipping Progress says the order qualifies when WooCommerce gives free shipping
   another way, such as with a free-shipping coupon.
 * Free Shipping Progress follows the free shipping method the shopper reaches with
   the smallest amount added, when a zone has more than one, counting the cart as
   each method does. It used to follow the smallest minimum, which could ask for
   more than was left. What is left also accounts for a percentage coupon taking
   its share of what is added, and for a fixed cart coupon the first additions use
   up. With a fixed discount per item, or a coupon limited to some products, the
   bar says what the cart lacks after discounts.
 * Free Shipping Progress counts toward a minimum that also requires a coupon once
   a free-shipping coupon is applied.
 * Free Shipping Progress fills the bar only once the order qualifies, and screen
   readers then hear that it qualifies.
 * With an empty cart, Free Shipping Progress now reads “Free shipping on orders
   of … or more”, since an order equal to the minimum qualifies.
 * Free Shipping Progress hides when it cannot be refreshed, instead of keeping 
   an old message.
 * Discounts on products with options: the price shown is that of the cheapest option
   in stock or on backorder.
 * Discounts on products with options: WooCommerce’s sale badge shows the discount
   of that same option, without “Up to”.
 * The trust line is now called Business Details, and shows nothing until a registration
   or VAT number is written. Its pattern is now “Business details in the footer”.
 * Arabic search looks only in the columns a search asks for, such as titles alone.
 * WhatsApp Button keeps the zero after the country code of Italy, San Marino and
   the Vatican.
 * WhatsApp Button keeps the line breaks of the prefilled message. They were lost
   from the link.
 * WhatsApp Button reads a number typed without its zero and without a country code(
   5…) as a number of your store’s country. It used to open a link to a number in
   another country. The editor now says when it read a number this way.
 * Sticky Add to Cart adds a product with options once the options chosen on the
   page make one that can be bought. Until then its button still takes the shopper
   to the options.
 * The new riyal symbol stays out of Action Scheduler’s background tasks, as it 
   does for other scheduled tasks.
 * Dark Mode Toggle switches only to a dark style variation, and the editor lists
   only those.
 * Dark Mode Toggle: the visitor’s choice holds on pages without the toggle, such
   as a checkout with a header of its own, when the toggle is in a template or template
   part.
 * Reworded texts in the editor, the settings and this readme.

#### 1.0.0

First release.

 * Six blocks: Free Shipping Progress, Delivery Promise, WhatsApp Button, Business
   Trust Line, Sticky Add to Cart and Dark Mode Toggle.
 * Three patterns: “Shipping, delivery and help”, “Business details”, and “Business
   details and dark mode”.
 * An option that shows the new Saudi riyal symbol as the Unicode character U+20C1,
   to the left of the number, on the storefront only.
 * An option for Arabic search that ignores diacritics and letter forms.
 * An option that shows a product with options at its cheapest option’s price, beside
   that option’s price before the discount.
 * A complete Arabic translation.

## Meta

 *  Version **1.1.0**
 *  Last updated **2 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 7.1 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [dark mode](https://wordpress.org/plugins/tags/dark-mode/)[free shipping](https://wordpress.org/plugins/tags/free-shipping/)
   [saudi riyal](https://wordpress.org/plugins/tags/saudi-riyal/)[whatsapp](https://wordpress.org/plugins/tags/whatsapp/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/khazaf-tools/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/khazaf-tools/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/khazaf-tools/reviews/)

## Contributors

 *   [ Sultan Husayan ](https://profiles.wordpress.org/bysltanx/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/khazaf-tools/)