Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install generator not functioning on blank install with admin and starter theme. #302

Open
noltedesign opened this issue Oct 23, 2024 · 0 comments
Labels
bug Describes or fixes a bug.

Comments

@noltedesign
Copy link

Subscription generator isn't working out of the box with stock Solidus starter starter frontend.

Solidus Version:
4.3.5
Installed with starter frontend on Ruby 3.3.5 with Rails 7.1.4

To Reproduce

  1. Spin up a new rails app
  2. add solids and solids subscription gem
  3. Run solidus install
  4. run solidus subscription install
  5. add a subscription
  6. Get an error on cart_line_item path: Validation failed: Subscribable must exist, Subscribable can't be blank

Current behavior
Validation failed: Subscribable must exist, Subscribable can't be blank
extracted source:
def handle_subscription_line_items
line_item = @current_order.line_items.find_by(variant_id: params[:variant_id])
create_subscription_line_item(line_item)
end
end

Expected behavior
Installation of fields should appear normal and have options
Move onto Checkout when added to checkout
backend admin also has the 'subscription' option come and go based on other menu item I'm in.

Screenshots
CleanShot 2024-10-22 at 18 25 49@2x
CleanShot 2024-10-23 at 09 49 09@2x

Desktop (please complete the following information):

  • OS: MacOS Sonomo
  • Browser: FF
  • Version: 131
@noltedesign noltedesign added the bug Describes or fixes a bug. label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Describes or fixes a bug.
Projects
None yet
Development

No branches or pull requests

1 participant