Sharing Cart

Blocks ::: block_sharing_cart
Maintained by Don Hinkelman, Tue Korsgaard
**Please download Sharing Cart 5.0, release 6, for your Moodle 4.2, 4.3, 4.4, 4.5, 5.0 sites.**. Sharing Cart 5.0, release 6 resolves issues which prevents proper installation and minor errors. Note that it requires Moodle 4.2 and PHP 8.0. To report issues, go to github: https://github.com/donhinkelman/moodle-block_sharing_cart/. The Sharing Cart is a block that enables sharing of Moodle content (resources, activities) between multiple courses on your site.
Latest release:
5808 sites
1k downloads
215 fans
Current versions available: 6
These new versions of Sharing Cart 5.0 are a complete rework of the plugin. It may not work as expected on older versions of Moodle 3.x and 4.x. Please let us know your issues in the github repository for Sharing Cart here: https://github.com/donhinkelman/moodle-block_sharing_cart/
  • 5.0, release 6 2025.09.24
    • Changed multiple minor issues for better operation.
  • 5.0, release 5 2025.07.02
    • Changed block/sharing_cart:manual_run_task capability to prevent as default for all users.
  • 5.0, release 4 2025.06.20
    • Change language strings
    • Fixed question bank backup & restore process. Includes question bank only when an activity have dependency on it.
    • Fixed minor issues that caused session lock.
    • Added capability block/sharing_cart:manual_run_task to allow specific user to manually run the backup/restore task. By default, this capability is set to allow for the manager role archetype.
    • Added a warning message when backing up a section with mod_quiz.
    • Switched backup method when copying a single activity to use the activity type backup instead of the course type backup to avoid copying all the question banks from the course.
  • 5.0, release 3 2025.04.22
    • Major changes
      • Changed the section and activity backups to use the course type backup.
      • Added test to getting the settings for selecting sections and activities.
      • Added version field to block_sharing_cart_items.
    • Minor changes
      • Fixed deprecation.
      • Fixed visual errors.
      • Added a factory for moodle globals.
      • Changed lang strings to not span multiple line.
    • Old sharing cart items
      • No changes have been made to the restore part of the plugin, so older sharing cart items still works the same way they did before. (previously failing modules will still fail.)
      • Old sharing cart items will be given a version number (1 or 2), depended on if they were inserted doing the upgrade that also created the block_sharing_cart_items or later.
      • Old sharing cart items and sections will be marked with a blue info icon.
  • 5.0, release 1 2024.08.05
    • Total refactor of the whole plugin in 5.0 release 1:
      • Improvements
        • Simplified the database structure.
        • Code is now much more readable and maintainable.
        • All HTML have been moved to mustache templates.
        • We now use the Moodle core backup and restore system for sections as well. This means that we can now restore sections and keep related access restrictions.
        • All ajax calls are now done using the Moodle core external functions.
        • As everything is now done asynchronously, you should have a much better experience when using the sharing cart. - Not having to reload the whole page all the time...
        • Supports the filter_multilang as well now.
      • Changes
        • It is no longer possible to move single activities between sections in the sharing cart.
        • All backups/restores are now done asynchronously. If you have a lot of adhoc tasks running on your site, it's also possible to manually run them.
      • Old sharing cart items
        • Will be converted to the new format when you upgrade the plugin.
        • You won't be able to restore these items all at once like before, but you can restore them one by one.
        • Old sections will be marked as legacy with a yellow warning icon.

Sharing cart allows the teacher to copy sections and individual activities into a clipboard (the 'sharing cart'), so the teacher can easily move activities from one course to another without having to go into the "Reuse course" function. 

Another common use case for the sharing is to created shared teachers course which a teacher can easily copy her best activities into and and other teaches can reuse those in his own courses. 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 currently maintained by the premium Moodle partner, "moxis". If you have any specific feature request, feel free to reach out on: support@moxis.dk. Don Hinkelman from the Moodle Association of Japan is handling bug discussion, testing and user assistance in either in this forum or the github bug tracker. Please bear in mind this a community-driven plugin with limited resources. 

Sharing Cart was designed in 2008 by teachers in Japan eager to collaborate and share their teaching activities. Later, Sharing Cart 3.0 was submitted to Remote Learner for independent vetting and passed in May 2016. In versions 3.x, a new interface programmed by moxis was added, in addition to the 'Section Copy' feature and Postgres compatibility (co-funded by Ulm University, Germany and Sapporo Gakuin University, Japan with programming by Ponlawat Weerapanpisit. Thanks especially to the programming team of moxis, who have vastly improved the plugin and continuously supported it over the past five years.
Brought to you with ❤️ frommoxis logo

Screenshots

Screenshot #0
Screenshot #1

Contributors

Don Hinkelman (Lead maintainer)
Tue Korsgaard: Co-Lead Maintainer
VERSION2 INC: Original Programming Team
Please login to view contributors details and/or to contact them

Comments

Show comments
  • Christian Putzenlechner
    Fri, 13 June 2025, 8:45 PM
    We are enthusiastic users of your sharing cart and our lectorers love it. However, what we are currently sadly missing and what our lectorers find less user-friendly is the new exclusively asynchronous backup mode. Would it be possible to reintegrate this option in the plugin settings (immidiate or asynchronous)? We last had this with version 4.4, release 5.

    Thank you and best regards
    Christian
  • Peter Diedrichs
    Fri, 13 June 2025, 9:15 PM
    I'd like to add, the anonymizing of forums and such is not working and is deeply missed.
    Best, Peter
  • Juan Carlos Galdos
    Tue, 8 July 2025, 1:29 PM
    Any news about the update for Moodlke 4.5?

    Best regards
    Juan Carlos
  • Don Hinkelman
    Sat, 30 Aug 2025, 10:23 AM
    Juan and everyone, I just posted Sharing Cart 5.0 release 5 which Frederik has tested successfully on Moodle 4.5 and 5.0 sites. Please tell us your experience and post issues on github for full attention. https://github.com/donhinkelman/moodle-block_sharing_cart
  • Blair F.
    Thu, 9 Oct 2025, 2:46 AM
    I'm wondering if anyone else is experiencing the same thing I am, when trying to upgrade from 4.4, release 5 (2024072900) to 5.0, release 6 (2024072901) on Moodle 4.5.4 (Build: 20250414). When I first ran it, I got an "Upgrade time out, please restart the upgrade" message, so I did just that. Now, the installation stalls at the Upgrading to new version page and when I open up a new browser takes me to the Server checks page. Although I was able to get to the plugin page where it showed that we now have the new version installed. I'm kind of stuck here, not knowing what to do next.
  • A white man with a reddish beard and short hair in a white shirt with sunlight shining on his face.
    Tue, 4 Nov 2025, 3:46 AM
    We upgraded sharing cart to Release 5 Version 6 today. I ran the upgrade in the browser and it timed out at first. I refreshed the page and reran the upgrade; it eventually finished but took over 10 minutes ("Success (613.82 seconds)").

    I see that upgrade.php loops over all sharing cart items to add a version field to them. We only have 5,314 tuples in block_sharing_cart_items so the upgrade should finish much quicker. Is it possible to rewrite upgrade.php to do a bulk update with $DB->execute() instead of one query per tuple? Reading the code, that's the only operation that stands out as potentially expensive.
  • Don Hinkelman
    Tue, 4 Nov 2025, 6:26 AM
    Eric and Blair, thank you for your reports. Please go to github and post an issue and Frederik will work on it from there. Thank you!
  • Andrea Ge
    Thu, 22 Jan 2026, 5:16 PM
    Hello,
    In this version (5.0, release 6 2025092900), there is now an option to save a subsection, but saving does not work (this was not present in version 4.4, release 5 2024072900). Have other users noticed the same thing?
  • think modular logo
    Wed, 11 Mar 2026, 10:11 PM
    I can confirm that saving subsections does not work for me (on Moodle 4.5)
  • Dr. Nellie Deutsch
    Wed, 11 Mar 2026, 11:46 PM
    I appreciate all the work that has gone to the plugin over the years. Is 5.1 in the making? Sadly, I had to uninstall the Moodle 5.0 version because it caused a mess with the tasks.
  • Susan Hadjiyanis
    Thu, 12 Mar 2026, 3:23 AM
    I would be very sad and set back in course development tremendously if the sharing cart does not work in the new version. Please, please, please, Moodle peeps, make it work!
  • Dr. Nellie Deutsch
    Fri, 20 Mar 2026, 8:59 PM
    I am lost without the sharing cart in Moodle 5.1. My work is so much harder with having to copy and paste things from one course to another. I hope there will be an update to Moodle 5.1 very soon.
  • Wazza
    Fri, 20 Mar 2026, 11:47 PM
    @Dr. Nellie Deutsch, we are also without Sharing cart for the time being. But use backup and restore, which is the same, or use the import function. I know it takes more clicks but it is doable.
  • Dr. Nellie Deutsch
    Sat, 21 Mar 2026, 12:34 AM
    @ Richard van Iwaarden thank you. I just copied and pasted the source code. I don't need the whole course, just certain activities. I got so used to the sharing cart over the years that all the extra steps seem a bit much.
  • Wazza
    Sat, 21 Mar 2026, 2:09 AM
    Nellie, you do know that you can backup, restore and import single activities right? No need for an entire course.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Please login to post comments