Issue: Non-Purchasable dynamic rule for guest visitors is not hiding the Add to Cart button on product pages. Button remains visible to logged-out users.
Environment:
- Theme: WoodMart (B2BKing-approved)
- Builder: WPBakery (custom product page template)
- Cache: Cloudflare + local cache (both purged during testing)
Rule configuration:
- Rule type: Non-Purchasable
- Applies to: Cart total / All products
- For who: Guest visitors (not logged-in)
- Status: Published
Troubleshooting performed:
- Confirmed rule is saved and published
- Tested in separate browser (not logged in) — Add to Cart still visible
- Cleared local WP cache and Cloudflare cache (Purge Everything)
- Disabled WoodMart AJAX Add to Cart (Theme Settings → Single product → Add to cart)
- Disabled WoodMart AJAX Shop (Theme Settings → Product archive)
- Tested basic guest restriction "Hide prices" — button still showed
- Tested "Hide shop & products" — this worked, confirming B2BKing is functional for guests; issue is isolated to the Non-Purchasable rule hook not firing on the WPBakery custom product template
Conclusion: B2BKing's guest restrictions work, but the Non-Purchasable rule does not remove the Add to Cart button when the product page is rendered via WPBakery custom layout in WoodMart.