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

Error when viewing product in admin after installing #2

Open
ChloeStinetorf opened this issue Jun 27, 2013 · 8 comments
Open

Error when viewing product in admin after installing #2

ChloeStinetorf opened this issue Jun 27, 2013 · 8 comments

Comments

@ChloeStinetorf
Copy link

I'm seeing the following error: undefined method `subscribed_price' for #Spree::Variant:0x007fa1b22478f8

Any thoughts? Thanks!

@onedanshow
Copy link
Owner

Hi! Glad to help.

Did you install the database migrations? (I realize I forgot this step from the README.)

rake spree_subscribe:install:migrations

And then run them?

rake db:migrate

@ChloeStinetorf
Copy link
Author

Hi, thanks so much! I installed the migrations and then ran them, which definitely helped!

Now I can create Subscription Intervals under Configuration in the Admin, but I'm not seeing them when I view the Product (Admin) page - though I am seeing the checkbox for Subscribable and the input for the subscription price. Any ideas on how I might assign one of my Subscription Intervals (30 days and 90 days are the ones I set up) to the Product?

@ChloeStinetorf
Copy link
Author

(to clarify, I am seeing the section for Subscription Intervals on the Product Admin page, but it's empty)

@onedanshow
Copy link
Owner

That "Subscription Intervals" input on the "Product Details" page of a product is a multiple-select input. If you put your cursor in the box and start typing, your subscription intervals that you defined should show up as options. Let me know if that is now working.

@onedanshow
Copy link
Owner

Did that work for you?

@ChloeStinetorf
Copy link
Author

Hi Daniel, sorry for the delay! I dont see the autocomplete box, but it
worked when I added the subscription directly in the database via the PSQL
prompt.

On Fri, Jun 28, 2013 at 12:22 AM, Daniel Dixon [email protected]:

That "Subscription Intervals" input on the "Product Details" page of a
product is a multiple-select input. If you put your cursor in the box and
start typing, your subscription intervals that you defined should show up
as options. Let me know if that is now working.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-20169748
.

@onedanshow
Copy link
Owner

Hmm...I tested it again just in case it broke with the Spree v2.0 upgrades. Here's a screenshot of what it should look like. If there is a Javascript error in the console on your side, or you need any other assistance, please let me know.

test

@sbrocher
Copy link

I just bumped on to the same issue (subscription intervals field not showing up). After debugging a bit I realized I just had to run the following command (to trigger install from /lib/generators/spree_subscribe/install):

rails g spree_subscribe:install

@ChloeStinetorf not sure if you had the same issue or not, but hoping this may help

@onedanshow maybe readme should have this as step 2 under Installation section (instead of running migrations)? This command includes prompt to run migrations as one of its steps.

@onedanshow onedanshow reopened this Jul 16, 2013
mumoc referenced this issue in crowdint/spree-subscribe Sep 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants