LindyMOQ: MOQ Settings for Products in SureCart

説明

LindyMOQ lets you set a minimum order quantity (MOQ) per SureCart product or per variant. Customers can order the minimum or more — but checkout is blocked if they try to go below it.

MOQ values are managed from a dedicated settings page in WordPress admin (Settings LindyMOQ), independent of SureCart’s product editor.

Features

  • Set an MOQ per product, or per individual variant
  • Product-page quantity selector is locked to the MOQ — no flicker, no client-side bypass
  • Checkout is blocked server-side when the quantity is below the MOQ
  • Clear error message shown at checkout when the minimum is not met
  • Quantities are aggregated across all line items before comparing to the MOQ
  • Stock-aware: current stock is shown next to each MOQ in the settings page, with a red “below MOQ” flag when stock is insufficient
  • Strict stock gate on the product page: when stock is below the MOQ, the buy button is disabled and an “understocked — please check back soon” message is shown
  • Honours SureCart’s “continue selling when out of stock” setting — when enabled, the stock gate is bypassed so backorders go through normally
  • Simple settings page — no complicated configuration

Requirements

SureCart must be installed, active, and connected to the SureCart API.

インストール

  1. Upload the lindymoq folder to /wp-content/plugins/
  2. Activate the plugin in WordPress Plugins
  3. Go to Settings LindyMOQ
  4. Enter the minimum quantity for each product and click Save MOQ settings

SureCart must be installed, active, and connected before the settings page can list your products.

FAQ

Does this work with SureCart product variants?

Yes. Products with variants show one MOQ input per variant. The minimum applies to that specific variant’s quantity.

What happens when a customer orders below the minimum?

The product-page quantity selector starts at the MOQ and physically cannot go below it. If a customer somehow reaches checkout with fewer units, checkout is blocked server-side and they see a clear error message.

Does the MOQ apply across multiple line items?

Yes. Quantities are summed per product (and per variant) across all line items before comparing to the MOQ.

What happens if I have less stock than the MOQ?

By default, the buy button is disabled on the product page and a short “minimum order is X units, currently understocked” message is shown, so customers can’t add an order you can’t fulfil. In the settings page, the affected MOQ row shows a red “below MOQ” flag next to the stock count so you can spot the conflict.

If SureCart’s “continue selling when out of stock” is enabled for the product, the stock gate is bypassed entirely — the customer can still buy and you handle the backorder.

My product list is empty — why?

Make sure SureCart is active and connected to its API. The settings page fetches products via SureCart’s PHP SDK, which requires an active API connection.

What is the maximum number of products supported?

The settings page fetches all non-archived products in a single request. If you have a very large catalog and products are missing, contact the plugin author.

評価

このプラグインにはレビューがありません。

貢献者と開発者

LindyMOQ: MOQ Settings for Products in SureCart はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“LindyMOQ: MOQ Settings for Products in SureCart” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.1.0

  • New: stock-aware admin display — current stock shown next to each MOQ, flagged red when below MOQ
  • New: product-page buy button is disabled with a clear “understocked” message when stock is below the MOQ
  • New: respects SureCart’s “continue selling when out of stock” setting (gate is bypassed when on)
  • Fix: quantity input value-trap is now re-applied on every render cycle, so the Interactivity API can no longer swap in an un-trapped input
  • Fix: value-trap no longer attaches to non-input web components (avoids an “Illegal invocation” landmine)
  • Fix: plugin action link no longer depends on the folder being named lindymoq

1.0.0

  • Initial release