Blocks: Sharing Cart

Maintained by Picture of Don HinkelmanDon Hinkelman, Picture of Tue KorsgaardTue Korsgaard
**New: Sharing Cart 3.8, release 2 fixes a bug in the drop down menu--"Copy to Sharing Cart" in Firefox.** 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.8 on 10 March 2020. Includes new interface programmed by Praxis of Denmark, in addition to 'Section Copy' feature and Postgres compatibility (co-funded by Ulm University, Germany and Sapporo Gakuin University, Japan).
2105 sites
125 fans
Current versions available: 4

News from Global MoodleMoot Barcelona: Praxis of Copenhagen is now a co-maintainer of the Sharing Cart. Thank you Tue Korsgaard for your collaboration.  Also, thanks to Alex Bias and Kathrin Oswald for advice and support. *Tested OK for Moodle 3.8*  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.7, and 3.8. 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 Tue Korsgaard
Tue Korsgaard: Maintainer
Picture of VERSION2 INC
VERSION2 INC: Original Programming Team
Please login to view contributors details and/or to contact them

Comments RSS


  • Picture of Don Hinkelman
    Wed, Sep 12, 2018, 12:01 AM
    Yes, we have several Master courses which server as hubs or repositories of activities. Also, we trust our teachers a lot, and give them system-wide roles as Manager or Course Creator.
  • Wazza
    Fri, Sep 21, 2018, 5:01 PM
    I love the Sharing Cart! However, I have noticed that in some custom course formats there's no option to add entire sections to the sharing cart. Question: how is this option added to the normal 'topics' format? Perhaps I can adjust my custom course formats to work well with the sharing cart.
  • Richard Samson
    Wed, Oct 3, 2018, 8:09 PM
    Hi there!

    Great plugin. Congratulations!

    Waiting for the 3.5 update, announced for September. What is the new prevision, please?
  • math
    Tue, Oct 23, 2018, 9:58 AM
    Fantastically useful plugin. Thanks for sharing it. Really looking forward to a 3.5 version.
  • Picture of Don Hinkelman
    Sat, Jan 12, 2019, 11:57 AM
    Sharing Cart version 3.5 release 1 has been tested on Moodle 3.6 and found compatible. Please report any issues on the new github location under my name.
  • 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 ?
Please login to post comments