Thanks to visit codestin.com
Credit goes to github.com

Skip to content

notify_me_when_available not working on storefront with spree_starter #13071

@mrbrdo

Description

@mrbrdo

Using the spree_starter project with Spree 5.1.5.

Expected Behavior

When clicking the Notify me when available button for a product that's out of stock, there should be a modal window or a notification about the result of this action.

Actual Behavior

When clicking the Notify me when available button, nothing happens. There is also no network requests seen in the dev console or error messages in the JS dev console.

Other observation

It seems the modal code is not rendered due to

<% show_waitlist_modal = spree.respond_to?(:waitlists_path) && current_variant.present? %>

(I might add that it makes no sense to render the button itself if the modal is not rendered as well, since the button then does nothing)

However in spree and in spree_starter, the only thing related to waitlists_path I can find is one turbo view:
https://github.com/spree/spree/blob/main/storefront/app/views/spree/waitlists/create.turbo_stream.erb

I assume there is some code missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions