Skip to content

Feature Request: Apply Default Rules for Guest/Non-Logged-In Users, Ignoring Variation-Level Quantity Rules #269

Description

@shsajalchowdhury

The request is to make the plugin completely ignore
all quantity rules for non-logged-in users, defaulting their rules.


Background (Reported by Customer)

The store at lovethebrand.gr uses WC Min Max Quantities Pro alongside WPML
(multilingual) and WooCommerce wholesale roles. Their setup:

  • Wholesale users (logged in): Step of 6 globally, with some variations
    having individual steps (e.g. step 12 per size/colour variation)
  • Guest / non-logged-in users: Should always see step 1 with no restrictions

Currently, variation-level quantity rules (min 6, step 6) take the highest
priority and override both global and role-based limits, meaning guests are
also affected by wholesale quantity rules unintentionally.


Current Behaviour

  • Variation-level quantity settings apply to all users, including guests
  • Variation rules have the highest priority and override role-based limits
  • Guest users see step 6 (or other wholesale steps) on products that have
    variation-level rules configured
  • Behaviour is also inconsistent across languages (WPML), with the step
    carrying over in one language but not the other

Expected Behaviour

  • Non-logged-in (guest) users should always default to step 1
  • All quantity rules, global, role-based, and variation-level, should be
    completely ignored for guests
  • Logged-in wholesale users should continue to follow role-based and
    variation-level rules as normal

Proposed Solution

Introduce a setting:

"Default step for guest users" When enabled, all quantity step rules
are bypassed for non-logged-in users and a step of 1 is applied across
all products and variations.

Alternatively, extend the existing role-based limits feature to explicitly
support a "Guest" role, allowing admins to set custom min/max/step values
for non-logged-in users independently.


Additional Notes

  • The store uses WPML for multilingual support — the inconsistency between
    languages when in guest mode may also be worth investigating as a separate bug
  • This is currently being handled as a potential custom development request,
    but would benefit a broader range of store owners if added as a core feature

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions