Skip to main content

Khaime Storefront

Display a beautiful product grid on any WordPress page with the [khaime_storefront] shortcode.

Download Plugin

khaime-storefront.zip
As of v2.0.0 the storefront is server-rendered. Your Merchant ID is configured once in Settings → Khaime — you don’t pass it on the shortcode. The JS SDK only loads when a shopper clicks Proceed to checkout.

Basic Usage

Filter by Category

Show only products from a specific category. You can filter by category ID or by slug/name — whichever is more convenient. By ID (numeric, from your Khaime dashboard):
By slug (URL-friendly, lowercase-with-dashes):
By name (case-insensitive, matches even if no slug is set):
Multiple categories (comma-separated):
Combine with other filters to narrow results further:
If category_slug matches no categories, the result is empty — the filter is not silently dropped. This guards against typos returning the full catalog.

Full Example

Attributes

Legacy attributes from the v1 JS plugin (theme, spacing, card_style, primary_color, sandbox, merchant_id, hover_effect, etc.) are accepted and silently ignored so existing shortcodes don’t error after the upgrade. They no longer have any effect — remove them when you next touch the page.

Admin Settings

Most setup happens once at Settings → Khaime:

Cart Display

The storefront includes a floating cart icon. By default it opens a slide-out drawer. To send shoppers to a dedicated cart page instead, set cart_display to page (either globally in Settings → Khaime → Cart display or per-instance on the shortcode). See the Cart Page guide for setup.

Theming

The storefront adapts to your host theme by deriving surfaces, hairlines, and mutings from currentColor, so the embed stays legible on light or dark WordPress themes without configuration. There’s no per-shortcode theme toggle — styling is inherited.

CSS Customization

Override styles using the ks- prefix: