Thursday 23 February 2012

How to install a Magento extension

For those just joining us, I'm now in the process of setting up a Magento store to integrate with Moodle.

Magento is an e-commerce solution in a similar vein to Moodle, it is free and open source or there are people that will do the dirty work for you.  I will eventually be using Magento to sell Moodle courses but first I have to get Magento to work with our online payment gateway.

Magento has native support for Paypal but we're using World Pay so I have to install a plugin.

First we vist www.magentocommerce.com/magento-connect/ and search for the extension you want, you can choose to look at free or premium extensions.  Clicking on the nice big Install Now button.

Now, this might bring up a dropdown menu for you to choose Magento Connect 1.0 or 2.0.  I'll admit this means nothing to me and if you're reading this post it might not mean anything to you either.  In another tab or window log in to your Magento backend via the admin panel and go to System > Magento Connect > Magento Connect Manager, you'll be asked to log in again.  You'll be taken to the Magento Downloader and if you scroll to the bottom you'll see what version of Magento Connect Manager you're working with.  Mine says 1.5.0.0.

Now I assumed this meant I should choose Magento Connect 1.0 from the drop down on the extension page, but when I did it didn't work.  So I tried choosing 2.0 and that seemed to do the trick.

Choose whichever you think might work, tick the box to agree to the licence agreement and click get extension key.  Copy the code it brings up, paste it into the box on the Magento Downloader marked Paste extension key to install and click Install.

At this point it'll either work or return an error message.  If you get an error message (like I did) try the other extension key.  If it works, return to your Magento dash, see if you have any messages saying a cache needs refreshing and configure your new plugin.  In my case this mean going to System > Configuration > payment methods.

Thursday 9 February 2012

Adding terms and conditions check box to sign up page

Want your users to agree to your terms and conditions before they can create an account? No sweat.

As an admin go to Settings > Site administration > Security > Site policies.  Scroll down to Site Policy URL.  In the box but the URL of wherever your terms and conditions are  hosted online, this can be on your Moodle site or somewhere else if you have a company wide policy.

This puts in a link to the terms and condition and a check box that a new users must check before they can signup.

Simples.

Thursday 2 February 2012

Enrolment Periods

We decided we want learners to have access to their courses for 60 days.  Their username will continue to be recognised for access to Mahara and site wide message boards but they will only have 60 day to access and complete paid content.

In Course Administration > Users > Enrolment Methods > Self Enrolment you cans elect how long the enrolment period lasts.  After this time if a user tries to access the course they just get a message saying "You cannot enrol yourself on this course"  This is because when an enrolment period is defined, Moodle sets a start and end date for their enrolment but doesn't actually un-enrol them from the course, if you look at enrolled users they are still there.

Say, somebody completes a course and gets their certificate and, two years later we email them to say the course has been updated to meet new legislation and they want to do the course again.  They can't access it even if they pay for it again because Moodle thinks they are already enrolled.

You can manually unenroll them or edit the unenroll date to give them access again but it's easier to set an un-enrol if inactive (on the same page as the enrolment period setting).  I've set it for 60 days (at least as long as the initial enrolment period).  That way if they complete the course and then don't look at it again they will be un-enrolled after 60 days, so they can re-enrol further down the line.

I've used the word enrol too many times.