Sharing Cart

Blocks ::: block_sharing_cart
Maintained by Don Hinkelman, Tue Korsgaard
**Sharing Cart 5.0, release 2 is available here in the Plugins Database from 22 April 2025. Requires Moodle 4.2 and PHP 8.0** Download here or for more timely releases and reporting 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:
5451 sites
1k downloads
202 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 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 RSS

Show comments
  • Steve BLACKWELL
    शुक्र, 21 जून 2024, 10:50 AM
    Amazing plugin that took our Moodle to a new level. However, we have recently updated to Moodle 4.4.1 (Build: 20240614) and Sharing Cart 4.4 release 3. We can copy items to the sharing cart but when we attempt to copy from the cart and into a course, a message appears at the top of the course saying: Copying this shared item followed by the item icon, its name and a cancel icon. There are no target markers elsewhere in the course and my only option (after a lengthy wait) is to click on the cancel icon in the message. Any ideas are welcome.
  • Lénaïc Genbauffe
    शुक्र, 21 जून 2024, 7:06 PM
    Hello, thank you for your plugin. I have a question for you. We have a course where the teachers are registered as students but we want to give them the option of using the shared cart to copy activities from this course and allow them to paste them into their course. Do you have any ideas on how to do this?

    Thanks !
  • Don Hinkelman
    शुक्र, 21 जून 2024, 8:58 PM
    The purpose of roles is to give different rights to educators and learners. Actually, Moodle allows your teachers to be a student and teacher role simulataneously.
  • Don Hinkelman
    शुक्र, 21 जून 2024, 8:59 PM
    I don't see a problem, because you can also design a custom role if you wish.
  • Veronique B
    मंगल, 25 जून 2024, 4:01 PM
    Hi Don, thanks a lot for your plugin. Same here, sharing cart is not working in our Moodle 4.4. Do you have any idea when it will be working again? Our teachers can't wait मुस्कान
  • Olivier Delhaye
    शनि, 20 जुल॰ 2024, 5:24 PM
    Hello Don, will we be able to use your excellent plugin under Moodle 4.4 soon? Thank youuu.
  • Don Hinkelman
    शनि, 20 जुल॰ 2024, 7:53 PM
    Hi Veronique and Olivier, I recommend that you download the latest Sharing Cart code from github. It appears the 4.4 problems have been fixed, but it is unclear to me whether you have to download from the master branch or the 4.2 Stable Branch. Go here: https://github.com/donhinkelman/moodle-block_sharing_cart/pull/204
  • Olivier Delhaye
    रवि, 21 जुल॰ 2024, 4:28 AM
    moodle-block_sharing_cart-master.zip downloaded from the Master branch. Everything seems okay now . Don, you are our god. Thank youuu. 😊
  • Don Hinkelman
    सोम, 29 जुल॰ 2024, 10:48 PM
    As of today, the Moodle plugins Database version of Sharing Cart (4.4, release 5) now has the latest github fixes included. I believe it will work well in Moodle 4.4. Keep me informed, especially in the Github comments.
  • Jamie Abernathy
    शुक्र, 30 अग॰ 2024, 12:46 AM
    We are on 4.3, and can only use the sharing cart if we allow a role to have restore access. According to our service provider the reason for this is because the code is tied to "restore." For future versions is there any hope that the code will be separate from "restore?" Or is there a way to allow the sharing cart, but not restore for a role?
  • Çağrı Akkaya
    शुक्र, 8 नव॰ 2024, 6:49 PM
    Hello everyone,
    First of all, thank you for this plugin. It is truly a lifesaver.
    Your support and answers here are very valuable.

    After the latest update, I am getting an error like the one below. The plugin works fine in the "admin" role, but it gives an error in the "manager" role. In the manager role, it is added to the cart, but I cannot add the cart to another course.
    Moodle: 4.3.6 (Build: 20240812)

    base_setting_exception: error/setting_locked_by_permission in [dirroot]/backup/util/settings/base_setting.class.php:171 Stack trace: #0 [dirroot]/blocks/sharing_cart/classes/controller.php(708): base_setting->set_value() #1 [dirroot]/blocks/sharing_cart/restore.php(95): block_sharing_cart\controller->restore() #2 {main}

    Error code: notlocalisederrormessage

    line 112 of /blocks/sharing_cart/restore.php: moodle_exception thrown
  • Marius Mailänder
    मंगल, 7 जन॰ 2025, 9:31 PM
    Hi Everyone,

    I’m a big fan of the plug-in and truly see its potential! However, I was wondering if the usability could be improved, particularly when inserting elements.

    At the moment, it’s not immediately clear where users should click. For example, there’s the process box at the top that says “Copying this item:…”, but then there’s also a grey box with an arrow that users need to click. In my case, the course header (e.g., “Welcome to this course…”) is displayed in between, which makes it a bit confusing.

    It’s not very clear that the grey box with the arrow is the action point to start the process. Perhaps adding a label like “Click here for import” could help. Even better might be a color scheme that highlights all the sharing cart elements during the process. For instance, if the grey boxes were red or visually distinct, it would be much clearer which elements on the screen are part of the sharing cart functionality.

    Just wanted to share this feedback in case it helps make the experience a bit smoother for everyone! 😊
  • Peter Diedrichs
    गुरु, 6 फ़र॰ 2025, 10:05 PM
    Since upgrading to Moodle v 4.5.1+, the user data is not copied when both boxes are ticked. The activity (forum) is empty.
    All three permissions are set to allow: moodle/backup:userinfo, moodle/backup:anonymise and moodle/restore:userinfo
    (My role is core admin anyway)
    No error messages, just an empty forum when restored.
    Using Sharing cart 2024072900
  • Michael Milette
    मंगल, 18 फ़र॰ 2025, 5:12 PM
    Hi Don and Tue,

    You mentioned that a complete rewrite for Moodle 4.5 LTS would be released "later in 2024". I was wondering if you have any idea when this update might be available.

    Best regards,

    Michael Milette
  • Dr. Nellie Deutsch
    मंगल, 22 अप्रैल 2025, 3:53 PM
    Can you check the upgrade for Moodle 5.0? I get an error after the upgrade. Thank you.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Please login to post comments