Blocks: Sharing Cart

Maintained by Picture of Don HinkelmanDon Hinkelman
The Sharing Cart is a block that enables sharing of Moodle content (resources, activities) between multiple courses on your site. Sharing Cart 3.0 was submitted to Remote Learner for independent vetting and passed May 2016. Updated and tested OK for Moodle 3.3>>3.7 on 10 September 2019. Includes new 'Section Copy' feature and Postgres compatibility (co-funded by Ulm University, Germany and Sapporo Gakuin University, Japan).
1984 sites
119 fans

*Tested OK for Moodle 3.7*  The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site. With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data--similar to the "Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators. Tested on Moodle 3.3, 3.4, 3.5, 3.6 and 3.7. If you have an earlier version of Moodle, please download an earlier version of Sharing Cart that matches your site from this plugins database. Note, the github host has been moved to donhinkelman. We appreciate if you can report your requests and issues there.


Screenshot #0
Screenshot #1


Picture of Don Hinkelman
Don Hinkelman (Lead maintainer)
Picture of Tomonori Maruyama
Tomonori Maruyama: Original author
Picture of VERSION2 INC
VERSION2 INC: Original Programming Team
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Clarence Prudhoe
    Sun, Feb 17, 2019, 9:42 PM
    Hi Don, I tried to install Sharing Cart to my Moodle 3.6.2+ (Build: 20190118) and got an error message when I tried to update the database. Debug info:
    Error code: generalexceptionmessage Exception - syntax error, unexpected 's' (T_STRING). It will not install on Moodle version 3.6.2. I need to use this terrific block so I hope you can help me get it installed. Thanks, Clarence
  • Picture of Clarence Prudhoe
    Tue, Feb 19, 2019, 2:19 AM
    Hi Don, I found and fixed the parse error in block_sharing_cart.php.
    line 145: $bulkdelete = ''
    . '' . s($alt) . ''
    . '
    $bulkdelete = ''
    . '' . s($alt) . ''
    . '

    and line 188: $link = '' . get_string('ajaxuse') . '';

    $link = '' . get_string('ajaxuse') . '';

    I works now.
  • Picture of Clarence Prudhoe
    Tue, Feb 19, 2019, 2:25 AM
    OOPS, It looks like it removed most of the code.

    I removed the junk in line 145 and 188. The href had "'%20.%20s($url)%20.%20'".
    I changed the href to "$url"
  • Picture of Christian Flury
    Mon, Apr 8, 2019, 10:08 PM
    I really like this plugin. Thank you so much!
    I mainly use it to copy entire course sections. In doing so, what I am observing is that the shopping cart is not always preserving the order of items in the source section: If I create the content in the source section not sequentially, copying the section to the sharing cart will place the items in a seemingly random order. Is there anything I can do about this (except reordering the items in the cart) or is this a bug?
    Regards, Christian
  • Picture of Sven Niland
    Wed, May 29, 2019, 5:08 AM
    I'm experiencing a problem with this plugin (which is a great tool, btw) in Moodle 3.5.2. Once installed and activated, it causes the Edit links in Editing mode to become disabled for all course objects, i.e. I can't edit a label object, SCORM object or any other (as examples). Is it a known issue with a known fix? I'm absolutely certain it's caused by Sharing Cart as I've tested installing and removing it on two separate instances several times to confirm. Any advice/help much appreciated.
  • Picture of Simon Hartmann
    Wed, Jul 17, 2019, 4:50 PM
    Fantastic plugin! Thank you for developing and maintaining it!

    We have the Sharing cart enabled in all courses, and we have created a custom role that allows all our faculty to view ALL courses.

    However, how do I enable our faculty to use the sharing cart without enrolling them as teachers in each course? I can not give them the teacher-role globally, as I don't want them to be able to edit and delete content in other peoples courses.

    Any inputs would be most appreciated!

    best regards
  • Picture of Michael Milette
    Wed, Jul 24, 2019, 1:07 AM
    Has anyone tried the current release of Sharing Cart on Moodle 3.7? I am planning on doing a 3.7 site next month and would love to include this plugin.
  • Picture of Roman Galperin
    Wed, Aug 7, 2019, 10:46 PM
    Hi, I'm running the previous version of the plugin on Moodle 3.1 and would really love to obtain the "copy section" feature. Unfortunately I can't upgrade my Moodle version due to a large amount of customization. Is it possible for me to modify the code of the older version to make this feature work? Or is the new version constructed in a completely different manner?
  • Picture of Acqua Alta
    Thu, Aug 8, 2019, 3:21 PM
    Michael Milette, I've got the latest version of the plugin installed on Moodle v3.7, and it's seems to work OK.
    We actually encounter an issue with it , but it's theme related, so probably not the plugin fault.
  • Picture of pierre REMY
    Mon, Aug 12, 2019, 4:51 PM
    i have a big scorm activity in a course. i duplicated(physicaly) it in other courses. now my backup sapce/moodle storage is expanded ! does this plugin allow me to share my scorm activity and reduce the moodle storage ?
  • Picture of Lucas Pedroso
    Mon, Aug 12, 2019, 11:17 PM
    Hello guys!
    Will we have any updates to version 3.7?
    When I tried to use version 3.7 it had some issues, one of them was that I couldn't click the Enable Editing button.

    He is sorely missed = (
  • Picture of ivan garcia vega
    Wed, Aug 14, 2019, 10:48 PM
    I can't use the extension in the snap theme
  • Picture of Don Hinkelman
    Fri, Sep 13, 2019, 7:38 AM
    Just to report that the Sharing Cart has been tested in a standard Moodle theme and works for 3.7. I'm afraid we are not able to fix issues for other themes, so please contribute code on github (donhinkelman) and I will try to integrate those code additions. Also, I am usually six months late testing in new releases, so if anyone can test in Moodle 3.8 when it is released, please announce your results here.
  • Picture of Blair F.
    Sat, Sep 28, 2019, 12:31 AM
    I just noticed that the SC menu option is missing from all of my *sections* containing any resources and activities and instead appears at the bottom of the edit menu for the first resource or activity. In empty sections, it appears where expected - on the menu for the section. I'm using version 3.6, release 1 2019012000, in Moodle 3.6.6. I've also noticed that this issue occurs only with the Collapsed Topics format, so I will be posting the issue under that plugin. However, if I can, I'd like to include a clue for Gareth as to what might be the issue. Don, do you have any idea that I might be able to share with Gareth?
  • Picture of Don Hinkelman
    Sat, Sep 28, 2019, 3:12 PM
    Blair, thank you for reporting this issue. Could I ask you to post the issue in the github bug-reporting for SC here: Then could I kindly ask any programmer who would have time to fix this, to post the fixed code as a pull request at the same location. I will merge that request right away. Much obliged!
1 2 3 4 5 6 7 8
Please login to post comments