Hamrah – Product Suggestions & Gift Boxes

外掛說明

Hamrah adds a “complete your order” block to the WooCommerce product page.

Suggestions you control per product

  • Pick any simple product or single variation as a suggestion, with its own quantity and an optional percent or fixed discount.
  • Choose how they are sold: optional (the customer ticks only the items they want) or required set (everything is added together).
  • Pre-select items you recommend most.
  • A running total shows the product plus the selected items before adding to cart.

Correct cart, every time

  • Each suggestion is added as its own cart line, so prices, stock, coupons and shipping rules keep working normally.
  • Discounts apply only while the main product is in the cart.
  • Items of a required set follow the main product’s quantity and are removed together with it.
  • Enable the cart suggestions setting to show the optional suggestions from the current cart in a single row. When multiple sources offer the same product or variation, the lowest unit price wins.

Gift boxes

  • Mark any product as a gift box and enter its inner size.
  • Boxes are offered when the product fits inside (any orientation, with a packing margin you set), when the box is assigned to the product’s category, or when you choose boxes on the product.
  • The customer can add a gift message and ask for no prices in the package. Both show in the cart, the order, the emails and as an order note.
  • Stores can disable gift wrapping without a box or build configurable gift packs using existing product stock and a required box.

Hamrah has no external services, no tracking and no upsell screens. It works with HPOS and the cart and checkout blocks.

安裝方式

  1. Upload the plugin and activate it. WooCommerce must be active.
  2. Go to WooCommerce Settings Products Suggestions & gift boxes to set the defaults and turn on gift boxes.
  3. Edit a product and open the “Suggestions” tab to add suggested products.
  4. To offer gift boxes, tick “Gift box” in the Shipping tab of the box product, then assign boxes to categories or enter product dimensions.
  5. Enable “Show suggestions in the cart” in the Hamrah settings to display the horizontal row in the cart.
  6. Create a dedicated simple product for each gift pack. Enable “Configurable gift pack” in the Suggestions tab, choose a gift box, and add the available products for each component. Group packs in a product category to list them together.

常見問題集

Can a variable product be suggested?

Suggest a specific variation. A variable product itself cannot be added without a choice of options.

Is Andazeh required?

No. When it is active, customers choose the measurement on the measured product’s own page. Hamrah uses the native Andazeh price for the combined estimate on that page.

What happens if the customer removes the main product?

Items of a required set and gift boxes are removed with it. Optional items stay in the cart at their normal price.

What if an item of a required set is out of stock?

The set cannot be added to the cart and the product page explains why.

Does it work with page caching?

Yes. The block contains no user-specific data and needs no session-bound tokens.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Hamrah – Product Suggestions & Gift Boxes〉的開發相關工作。

參與者

〈Hamrah – Product Suggestions & Gift Boxes〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Hamrah – Product Suggestions & Gift Boxes〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.1.0

  • Show optional product suggestions in the classic cart or Cart block. Suggestions use the same product settings and conditional discounts as the product page.
  • Add an optional Andazeh integration. Measured purchases use Andazeh’s product form and price calculator. WooCommerce alone is sufficient to use Hamrah.
  • Let stores disable gift wrap without a box and configure gift packs with a choice of products per component and a fixed box.
  • Validate gift and set selections, keep linked quantities and stock in sync, and preserve the cart if a required item cannot be added.

1.0.4

  • Fix: on variable products the block is placed above the quantity and add to cart row, so themes that keep that row on one line no longer squeeze the button.
  • Fix: variable products without suggestions or matching gift boxes no longer get an empty block.

1.0.3

  • Fix: the running total now works in block themes (prices, currency and variations).
  • The gift message box uses the theme font.

1.0.2

  • Product page: keep the layout fix working in themes that force the add to cart form onto one row.

1.0.1

  • Product page: the block takes its own row in themes that lay out the add to cart form as a single row.

1.0.0

  • First release.