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).
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.