Sharing Cart

Blocks ::: block_sharing_cart
Maintained by Don Hinkelman, Tue Korsgaard
**Sharing Cart 4.4, release 3 is from 5 February 2024. Requires Moodle 4.2 and PHP 8.0** Download here or go to github: https://github.com/donhinkelman/moodle-block_sharing_cart/. Sorry for any confusion: Sharing 4.2 and Sharing Cart 4.3 were skipped here on the Plugins Database. And Sharing 4.4 was an overly ambitious name--it is actually for Moodle 4.3, and requires PHP 8.0. The Sharing Cart is a block that enables sharing of Moodle content (resources, activities) between multiple courses on your site.
Latest release:
5125 sites
1k downloads
190 fans
Current versions available: 6
New version 4.5 is due soon (end of May 2024) which is a complete rework of the plugin. Sorry, but any bugs associated with current release will not be processed. We encourage you the retest the issue after the release of the new version and resubmit the issue. 
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 3.0 was submitted to Remote Learner for independent vetting and passed May 2016. In versions 3.x, new interface programmed by moxis was added, in addition to 'Section Copy' feature and Postgres compatibility (co-funded by Ulm University, Germany and Sapporo Gakuin University, Japan). Thanks also to Ponlawat Weerapanpisit and other contributors for programming assistance.
Brought to you with ❤️ frommoxis logo

Screenshots

Screenshot #0
Screenshot #1

Contributors

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

Comments RSS

Comments

  • Don Hinkelman
    Fri, 5 Mar 2021, 6:55 AM
    Yes, Csaba, I recommend those with Moodle 3.9 or 3.10 sites to download the github code and install Sharing Cart from there. There are small fixes going in there occasionally, and I update this code on the plugin database every three months or so. My university has been using the Sharing Cart continuously through Moodle 3.10 and standard themes with no issues. I hope Praxis will have time to work on the issues listed in github, but so far those have not affected our operation.
  • Csaba Vágvölgyi
    Fri, 5 Mar 2021, 3:45 PM
    Thanks! smile
  • Robert Morris
    Sat, 13 Mar 2021, 4:33 PM
    This information is so wonderful, keep updating these types of interesting posts. Thank you for sharing this with us.
  • Don Hinkelman
    Sat, 13 Mar 2021, 6:26 PM
    I have just released Sharing Cart 3.9, release 3 here on the Moodle plugins database. https://moodle.org/plugins/pluginversions.php?plugin=block_sharing_cart Thanks very much to Praxis software engineers, Ponlawat Weerapanpisit and other volunteers. This current version was earlier available on Github. I have also received reports that this version works on Moodle 3.10 as well. Please continue reporting issues and suggestions--github is the best place when you know you have an issue to share. https://github.com/donhinkelman/moodle-block_sharing_cart
  • Don Hinkelman
    Sat, 10 Apr 2021, 5:20 AM
    Also note that recent versions of Sharing Cart require PHP 7.1.x. Sites using php 7.0.x will experiences issues like this: https://github.com/donhinkelman/moodle-block_sharing_cart/issues/88
  • Don Hinkelman
    Tue, 13 Apr 2021, 8:04 PM
    Correction: according to Praxis, if you use PHP version 7.2 or older, you may experience issues when uploading and downloading activities with the Sharing Cart (not related to the Sharing Cart). For example, there are issues with badges in these older PHP versions. PHP version 7.3, 7.4 and later are recommended.
  • Dr. Nellie Deutsch
    Mon, 26 July 2021, 9:18 PM
    Hi Don, I upgraded Sharing Cart as I received that an update was available on my Moodle sites using various themes. At first, I thought it was the themes, but then, I tried it on BOOST and it showed an error whenever I turned editing on. This is what I get as a result with debugging turned on for developers. I hope it helps.

    Error
    Exception - syntax error, unexpected 'moodle_database' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
    Debug info:
    Error code: generalexceptionmessage
    Stack trace:
    line 39 of /blocks/sharing_cart/classes/repositories/course_repository.php: ParseError thrown
    line ? of unknownfile: call to core_component::classloader()
    line 77 of /blocks/sharing_cart/classes/controller.php: call to spl_autoload_call()
    line 84 of /blocks/sharing_cart/block_sharing_cart.php: call to block_sharing_cart\controller->render_tree()
    line 341 of /blocks/moodleblock.class.php: call to block_sharing_cart->get_content()
    line 235 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1239 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 374 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 3980 of /lib/outputrenderers.php: call to block_manager->region_has_content()
    line 40 of /theme/boost/layout/columns2.php: call to core_renderer->blocks()
    line 1396 of /lib/outputrenderers.php: call to include()
    line 1326 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 245 of /course/view.php: call to core_renderer->header()


  • Dr. Nellie Deutsch
    Mon, 26 July 2021, 9:20 PM
    I was unable to edit the response above, so here's more. I'm on Moodle version 3.11.1.
  • William Stewart
    Wed, 28 July 2021, 1:00 PM
    I have a similar issue as Dr. Nellie Deutsch when trying to submit a file or save a file:

    line 32 of /blocks/sharing_cart/classes/files/cleaner.php: ParseError thrown
    line ? of unknownfile: call to core_component::classloader()
    line 33 of /blocks/sharing_cart/lib.php: call to spl_autoload_call()
    line 405 of /lib/filestorage/stored_file.php: call to block_sharing_cart_after_file_deleted()
    line 1187 of /lib/filelib.php: call to stored_file->delete()
    line 275 of /lib/filelib.php: call to file_save_draft_area_files()
    line 221 of /mod/assign/submission/onlinetext/locallib.php: call to file_postupdate_standard_editor()
    line 7491 of /mod/assign/locallib.php: call to assign_submission_onlinetext->save()
    line 7576 of /mod/assign/locallib.php: call to assign->save_submission()
    line 493 of /mod/assign/locallib.php: call to assign->process_save_submission()
    line 55 of /mod/assign/view.php: call to assign->view()

    Moodle only outputs this generic message:
    Exception syntax error, unexpected '\' (T_NS_SEPARATOR), expecting function (T_FUNCTION) or const (T_CONST)

    I had to disable Sharing Cart to prevent it from not allowing students to add files (I couldn't even add it in assignments/quizzes as the admin). The plugin even reports two instances or the block being present in two courses; except the plugin is NOT present in those two courses. Other courses are unaffected by this.
  • William Stewart
    Wed, 28 July 2021, 1:00 PM
  • Lihi Dor
    Wed, 10 Nov 2021, 8:18 PM
    Hello, in moodle3.10 we have a problem - when adding a module to sharing cart it inserts the same module twice. Do you familiar with this bug? Thanks!
  • Elias Sfeir
    Thu, 10 Feb 2022, 11:57 AM
    Hello,
    Thank you for the plugin.
    We have an issue, whenever you choose to copy a quiz between two courses, it will copy as well all the question bank with it.
    Is there any fix for that.

    Thank you for your support.
  • vishnu prasad
    Thu, 10 Feb 2022, 4:09 PM
    Hello,
    I have same issue as Elias Sfeir mentioned. Whenever choose to copy a quiz between courses, it will copy all the question bank with it. Any idea to resolve?
  • Thomas Hoyer
    Fri, 11 Feb 2022, 7:28 PM
    What are the permissions settings to allow teachers to use the checkbox "Do you want to copy user data?" in that copy modal? Right now my teachers can't use it and me as a admin can. Don't know which permission isn't set on allow. Any ideas?
  • Acqua Alta
    Sat, 12 Feb 2022, 3:29 AM
    Hi Thomas Hoyer,
    I looked at the code of the plugin, and found the "is_userdata_copyable" function in the file "moodle-block_sharing_cart/classes/controller.php" file.
    The following capabilities are mentioned in this function:
    moodle/backup:userinfo
    moodle/backup:anonymise
    moodle/restore:userinfo
Please login to post comments