Linux 软件免费装
Banner图

Khazaf Tools

开发者 bysltanx
更新时间 2026年12月2日 04:36
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce whatsapp free shipping dark mode saudi riyal

下载

1.1.0

详情介绍:

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 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 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. Accessibility Privacy Khazaf Tools does not track visitors, does not collect personal data and makes no requests to other sites. Designed and developed by Sultan (https://bysltan.com/themes).

安装:

  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.
  6. Sticky Add to Cart: once, anywhere in the single product template.
  7. 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.
  8. Business Details: at the bottom of the footer and of the checkout footer.
  9. 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.

屏幕截图:

  • 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.
  • 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.
  • Dark Mode Toggle: switches the site to the dark style variation of your theme.

常见问题:

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

更新日志:

1.1.0 Released 28 November 2026. 1.0.0 First release.