Hi, 1st great contribution, I am really happy finding this module.

2nd I am wondering what are the steps to integrate it with ubercart, I found the rule, but it is still not clear.

I imagine one of these possibilities:

- A course need to be added as a product class on ubercart
and/or
- A product need to be enabled as a course

So I imagine that before the user purchase the product/course he can not see the take course tab, and later he will be able to do so.

Also other users not enrolled should not see the course materials, I read you suggested access_private for this, but how can I add this into the mix?

Finally, will you plan to support commerce for the D7 version?

Thanks

Comments

djdevin’s picture

Status: Active » Needs work

That's correct. We don't have a 1 click way of doing it yet, but that's the idea. You would buy the course (as a product, or a signup) and an Ubercart action would then enroll you in the course. We're still sketching out content privacy.

We haven't tested this extensively in 6.x-1.x as it was ported from an internal version, so if you could give it a try and report back we can work on getting it solid.

Thanks!

pitxels’s picture

Status: Needs work » Active

No ;( I am not able to make this integration works, please help

djdevin’s picture

Can you enable the course_uc module?

pitxels’s picture

I tried making the "course" a product (adding it in the products classes) and also I tried to make the "product" a course editing the node type.

The result is that the add to cart button disappear, and the "take course" tab is always there, (but maybe for that tab thing I need to create a user besides user 1...)

What I am missing?

pitxels’s picture

Can you enable the course_uc module? yes, and I guess that created the rule I mentioned.

pitxels’s picture

On a side note, I guess one can add a layer of control with a "student" role, that is provided when the user purchase the course on ubercart, not perfect but better than nothing...

djdevin’s picture

it's not enabled by default, you can enable it by going to admin/build/modules. I believe it's called Ubercart Course

djdevin’s picture

Status: Active » Needs review

I did some brief testing on this and fixed a few minor bugs. Please checkout the latest 6.x-1.x from git or wait until a new 6.x-1.x tarball.

Here is what I did to get it to work:

1) Enable modules - course course_uc uc_cart uc_product uc_store
2) Review settings at admin/settings/course. Check the "Restrict enrollments" box.
3) Add "course" as a product type at admin/store/products/classes

You should be able to create a course with a price, and have it restricted to users until they purchase it.

Let me know how it goes.

pitxels’s picture

Ok I cloned the latest release from git and the integration seems working well so far :)

Thanks for your quick support

pitxels’s picture

One small Issue: The block "Course outline"
If the user have not purchased the course, the block should not be displayed.

This is for hidding the nodes urls, but what is a enrolled student shares the nodes links to a non enrolled student?

You need to fix the permission issue I am afraid.

djdevin’s picture

Status: Needs review » Needs work

I agree, the course outline shouldn't show unless the user is enrolled.

scottrigby’s picture

Finally, will you plan to support commerce for the D7 version?

Yes we are planning to Commerce integration in the 7x branch (won't start looking at that until after the 6x stable release though).

The block "Course outline" If the user have not purchased the course, the block should not be displayed.

Yep - following up on what djdevin said, that might be good as a configuration even (if a use case can be imagined where a site wishes to show students the course outline before registration code / purchase - if configurable, that may be seen as a feature rather than an access problem).

scottrigby’s picture

Status: Needs work » Fixed

This Ubercart integration is resolved.

Let's move discussion about outline access to #1679788: Outline access considerations

scottrigby’s picture

Issue tags: +6.x-1.0 blocker

Note there's a test for this as part of #1650964: Build unit tests.

Also we had considered this part of #1517330: 6.x-1.0 release, but didn't tag yet

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 50e934f on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1517012: ubercart integration, fix defaults for restrict enrol/...
  • Commit 810bfcc on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1517012: add dependencies to course_uc
    
    
  • Commit 2e90d90 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1517012: set course defaults to automatic enrollments, bypassing...
  • Commit dc12d93 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1517012: prevent course products globbing over plain ol products
    
    
  • Commit a67e1d0 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1517012: prevent course product logic clobbering regular products...
  • Commit ecd183b on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1517012: course products clobbering regular products
    
    
  • Commit f60f118 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1517012: make payment a step
    
    
  • Commit 0b8e3b5 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1517012: set new product course objects to the current course, do...