Your Moodle version

Blocks: Sharing Cart

Maintained by Picture of Tomonori Maruyama Tomonori Maruyama, Picture of Don Hinkelman Don Hinkelman
The Sharing Cart is a block that enables sharing of Moodle content (resources, activities) between multiple courses on your site. Compatible with Moodle 2.9 from June 16, 2015.
Moodle 2.3, 2.4, 2.5, 2.6, 2.7, 2.8

Note: To update the Sharing Cart to Moodle 2.9, we fixed the file /classes/controller.php by changing the term, textlib,  *twice* to core_text in both line 138 *and* in line 139.

I apologize to those who already downloaded the plugin from plugins database from June 16 to June 19, because only one of the textlib terms was changed, and therefore problems will persist until both are changed.  From June 19th the download has been corrected.

The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site. With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data--similar to the "Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. 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 viewable only by teachers, course creators and administrators. Tested on Moodle 2.9 and earlier versions.


Screenshot #0
Screenshot #1


Picture of Tomonori Maruyama
Tomonori Maruyama (Lead maintainer)
Picture of Don Hinkelman
Don Hinkelman: Contributor
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • MD shot of me from his iphone4
    Mon, Feb 24, 2014, 11:56 AM
    Thanks for sending this back for approval Tomonori. I had a look at this and it works well on 2.5 and 2.6 standard themes.

    There is an issue however with 2.6+clean theme (bootstrapbase) where i couldn't add to the sharing cart. In 2.6+clean theme, the action icons are lumped into a drop down menu when you click 'Edit', the 'upload to sharing cart' should show up there.

    Besides that this look pretty neat!
  • MD shot of me from his iphone4
    Mon, Feb 24, 2014, 12:09 PM
    Unfortunately there was an error uploading your plugin's lang file to AMOS, i've reported it as MDLSITE-2806 but you may want to upload an updated version that simply replicates the string instead of uses variables in lang file.

    ps: I've commented what i saw @
  • Picture of Tomonori Maruyama
    Fri, Feb 28, 2014, 1:25 PM
    I fixed the lang files. Moving the action icon into the drop down menu is still in progress.
    Thank you.
  • Picture of Emma Richardson
    Sun, Mar 2, 2014, 8:54 PM
    Finally!!!! Congratulations on finally making the plugin directory! How do I add a review? I am not seeing a link on the review page. But those reading comments, this plugin is one of the few that are a must for any Moodle site. Allows teachers to easily copy activities and resources between courses.
  • Picture of James Foster
    Thu, Mar 13, 2014, 2:15 AM
    Any estimated time when the patch for the action icon to appear into the drop drop down menu?
  • Picture of Blair F.
    Thu, May 1, 2014, 12:57 AM
  • Picture of Melissa Benson
    Sat, Aug 2, 2014, 2:43 AM
    Is this module compatible with version 2.7? It looks like on the download page it says 2.6.
  • Picture of Daniel Neis Araujo
    Wed, Oct 15, 2014, 10:44 PM

    thanks for the block!

    The link for docs is broken ;)

    Can I use this block to copy/move contents from frontpage?

    Kind regards,
  • Picture of Don Hinkelman
    Thu, Oct 16, 2014, 7:43 PM
    Hi Melissa: Yes, it works with Moodle 2.7.
    And hi Daniel, thanks for the report. Link to docs is now fixed and yes, front page copy/move is possible (add main menu block and add sharing cart block to front page).
  • Picture of Daniel Neis Araujo
    Thu, Oct 16, 2014, 10:32 PM

    thanks for your feedback!
    I've downloaded via downloaded button, and the block does not appear at front page.

    The block is missing

    'site' => true

    on the array returned by



    Kind regards,
  • Picture of Brian Rigwald
    Thu, Jun 4, 2015, 10:40 PM
    Are there any incompatibilities with Moodle 2.9?
  • Picture of Don Hinkelman
    Mon, Jun 8, 2015, 4:17 PM
    For 2.9, yes, there is an issue. So please wait, Brian. We are fixing a minor issue that prevents viewing a quiz after it is uploaded.
  • Picture of Marie CICHOCKI
    Tue, Jun 16, 2015, 4:22 PM
    Hello Don, I have tried the Sharing Cart with 2.9+. Whenever I copy any activity or ressource to the sharing cart, I do not get anything in the sharing cart. Any news vs your above post?
  • Picture of Don Hinkelman
    Tue, Jun 16, 2015, 9:22 PM
    Here is a fix for Moodle 2.9. Tested by Emma Richardson. Go to file : /blocks/sharing_cart/classes/controller.php Line: 138, 139
    [present code]
    if (\textlib::strlen($cleanname) > self::MAX_FILENAME)
    $cleanname = \textlib::substr($cleanname, 0, self::MAX_FILENAME) . '_';

    [edited code--fix for 2.9]
    if (\core_text::strlen($cleanname) > self::MAX_FILENAME)
    $cleanname = \core_text::substr($cleanname, 0, self::MAX_FILENAME) . '_';
  • Picture of Jakke Lehtonen
    Fri, Jun 19, 2015, 4:32 AM
    Is that fix for this: exception 'zip_exception' with message 'Invalid structure of the zip package' in mdeploy.php:1457
1 2
Please login to post comments