Moodle Plugins directory: Sharing Cart | Moodle.org
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.
- Major changes
- 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.
- Improvements
- Total refactor of the whole plugin in 5.0 release 1:
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 ❤️ from
Thank you and best regards
Christian
Best, Peter
Best regards
Juan Carlos
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.
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?