Item currently unavailable not displayed for anonymous user

Created on 10 November 2013, over 11 years ago
Updated 28 February 2025, about 1 month ago

As administrator, when I view my registration enabled product I can see:

"No slots available
This item is currently unavailable."

when there are no more slots available. For anonymous user, it just shows the "add to cart" button. This is for a display with only one product w/o options, so falls into the "hidden" display.

I can get the proper expected results "No slots avialable" listing if I change line: in commerce_registration.module, line 357

case "hidden":
        $product = commerce_product_load($form['product_id']['#value']);
        $settings = registration_entity_settings('commerce_product', $form['product_id']['#value']);
        if (commerce_registration_product_has_registration_field($product->product_id)
            && !empty($settings)
            //COMMENT OUT THIS LINE && registration_status('commerce_product', $form['product_id']['#value'], TRUE)
            && registration_register_page_access('commerce_product', $product)) {  

Not sure if this is a bug or if I have a permissions set incorrectly.

πŸ› Bug report
Status

Closed: outdated

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States aj2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024