v1.4.0 — WooCommerce 1.4.0: quote-only B2B store mode, and the Settings link fixed
Install
Download tackquote.zip below → WordPress admin → Plugins → Add New → Upload Plugin.
If you have 1.3.3 installed, deactivate and delete it first — 1.3.3 shipped in a tackquote-for-woocommerce/ folder, so WordPress treats this as a separate plugin. Your API key and settings are stored as WordPress options and survive.
Fixed: "Sorry, you are not allowed to access this page"
Clicking Settings on the Plugins screen failed for everyone, including full administrators.
It was never a permissions problem. The Settings link carried a hardcoded admin.php?page=tack-quotes, which was the admin page slug up to 1.3.1. The 1.3.2 and 1.3.3 renames moved the slug — first to tackquote-for-woocommerce, then to the WordPress.org slug tackquote — and left the link pointing at a page that no longer exists.
wp-admin/admin.php renders a page only if its slug is registered, and otherwise calls wp_die() with the same sentence it uses for a genuine capability failure. That collision is what made this look like a permissions bug. The page itself was always correctly registered at manage_options, and it still is — it holds the API key that authenticates your whole store.
The link is now derived from the same constant the menu is registered with, so the two cannot drift apart again.
New: quote-only (B2B catalog) store mode
A single Store mode setting turns your whole storefront into a B2B catalogue. "Add to cart" is withdrawn and customers request a quote instead — your products, categories and search keep working, only checkout goes away.
- Applies to — every customer, or signed-out visitors only (so approved trade customers keep a normal cart), or specific roles
- Prices — optionally replaced with "Price on request"
- You are not locked out — anyone who can manage WooCommerce still sees a working cart, so you can test your store while it is closed to customers. Switching back restores checkout immediately.
It is enforced on the server, not by hiding a button: products become non-purchasable, so a hand-typed ?add-to-cart= link, the Store API and cached pages are all refused the same way the button is.
Two details worth knowing:
- Carts filled before you switch are emptied on the cart and checkout pages with an explanation. WooCommerce's own cart validation checks only that a product still exists, not that it can be bought, so without this an older cart could still be checked out and the store would not really be quote-only.
- Quote buttons now mount outside the add-to-cart form. They previously rendered inside it, so withdrawing the cart button would have removed the quote button too and left a normal-looking product page with no way to transact at all.
Other platforms
The Magento 2, OpenCart, PrestaShop, Shopware, Zen Cart, Wix and Squarespace artifacts are unchanged from v1.3.0 and are re-attached here so the latest release remains complete. Quote-only mode is being brought to the other platforms next.
What's Changed
- fix(wordpress): Settings link led to "not allowed to access this page" by @ackm04 in #7
- feat(wordpress): quote-only (B2B catalog) store mode by @ackm04 in #9
Full Changelog: v1.3.0...v1.4.0