Skip to content

Twenty Twenty-Five Theme: Min Quantity Notice Shown on Shop Page #235

Description

@shsajalchowdhury

An issue has been identified when using the Twenty Twenty-Five theme with WC Min Max Quantities.

With the same plugin settings, the behavior differs between themes.

Environment

  • Plugin: WC Min Max Quantities
  • Theme with issue: Twenty Twenty-Five
  • Theme working correctly: Storefront
  • AJAX add to cart: Enabled
  • Page affected: Shop Page

Plugin Settings

  • Minimum quantity: 500
  • Quantity step: 500
  • Maximum quantity: Not set

Steps to Reproduce

  • Activate the Twenty Twenty-Five theme
  • Set product minimum quantity to 500
  • Set quantity step to 500
  • Visit the shop
  • Click Add to Cart

Actual Result

A validation notice appears on the shop page:

Error notice: The minimum required quantity for {Product Name} (#61) is 500.

The product is not added to the cart.

Expected Result

Product should be added to the cart using the minimum quantity automatically.

This works correctly with the Storefront theme using the same plugin and product settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityCheck compatibility with different plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions