Moodle Plugins directory: Sharing Cart | Moodle.org

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.
- 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
Thanks !
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
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! 😊
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
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