VirtueMart

From Joomdle
Revision as of 15:14, 3 May 2010 by Antonio (Talk | contribs) (Created page with '====Integrating Joomdle with Virtuemart 1.1.4==== <span class="alert">This "feature" is provided as is and no warranties, guarantees or otherwise, expressed or implied, are prov…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Integrating Joomdle with Virtuemart 1.1.4

This "feature" is provided as is and no warranties, guarantees or otherwise, expressed or implied, are provided. Joomdle and individuals associated with its development and support shall not be held responsible for any loss of data, reputation, and/or money in any currency whatsoever. It is strongly advised that this "feature" be installed, configured, tested and proven working in a test environment connected to Paypal's Sandbox development environment prior to being implemented in a production site.

This document applies to Joomdle R0.23 and Virtuemart 1.1.4

This feature is experimental and has not been fully development nor fully tested.

Ensure you have a Paypal Sandbox account setup and configured properly to test your specific environment.

Limitations

  • Currently Joomdle only supports Paypal (HTML-form based) as a method of payment.
  • Disabling or hiding a course in Moodle does not automatically unpublish the Virtuemart product in Joomla. You should unpublish the course first in Joomla, then disable / hide the course in Moodle.

Features

  • Allows webmasters to publish Moodle courses inside a Virtuemart storefront
  • Allows Buyers to purchase a Moodle course using Paypal (HTML-form based) like any other product offered through Virtuemart
  • Automatically enrolls the Buyer in the selected course(s).
  • Sends a "customised" email to the Buyer confirming their purchase / provide instructions on gaining access.

Virtuemart 1.1.4 Configuration

Ensure you have Virtuemart 1.1.4 installed and working properly before you begin. Joomdle has not been tested with earlier versions of Virtuemart.

Configure Virtuemart to sell downloads.

R023 vm int vm download 2.jpg

From Virtuemart's main Configuration choose the Downloads tab. -->Enable downloads.

Ensure you have correct permissions to make changes to the administrator/components/com_virtuemart/virtuemart.cfg.php file.

Create a new Virtuemart Product Category

Under the Virtuemart Product Menu, create a new Virtuemart Product Category to group your Moodle courses. Take note of Product Category's ID, as you will it later to enter into Joomdle Global Parameters configuration.

Enable Paypal

Enable Paypal (HTML-form based) as a payment method and configure it as you normally would except that you will need to change the "notify-url" in Paypal's Payment Method Form / Configuration Tab / Payment Extra Info.

R023 vm int vm paypal configure 2.jpg

  • Change Notify URL in the Payment Extra Info block. Change:
    • "notify_url" => SECUREURL ."administrator/components/com_virtuemart/notify.php",
    • with
    • "notify_url" => SECUREURL ."administrator/components/com_joomdle/paypal_notify.php",

Ensure you have correct permissions to make changes to the administrator/components/com_virtuemart/classes/payment/ps_paypal.cfg.php file.

Joomdle Configuration

Moodle

The package enrol_joomdle.zip contains a new enrolment method for Moodle.

To install, unzip enrol_joomdle.zip into a temp folder and copy the files to the moodle/enrol folder on your web server (you should have a new folder called moodle/enrol/joomdle now).

Enter Moodle as an administrator.

A new enrol method, called Joomdle, should appear in Courses/Enrolments. Enable it and set it as default.

R023 moodle enroll 1.jpg

Click Edit to configure its options:

  • Default cost: The default cost to enroll in courses
  • Currency: Your preferred default currency for courses
  • Enrol message: A message to show to the user if he tries to access the course without having paid.
Joomla

To start using Joomdle's Virtuemart integration, enable it in Joomdle Global Configuration (click on the Parameters button in Joomdle Configuration) as shown in the image below.

R023 vm int joomdle config 1.jpg

Enter the Virtuemart Product Category ID for which you wish Moodle's courses to appear. This means you will not need to manually create Virtuemart products.

Moodle courses will automatically be created in Virtuemart and Published.

In addition, you can configure Joomdle to send out an email to the buyer once the payment has been completed successfully.

  • Either enter the Subject and Body of the email you wish to send; or
  • EnterCOURSE_NAME and COURSE_URL for Joomdle to "grab" the values from Moodle.

This "feature" is provided as is and no warranties, guarantees or otherwise, expressed or implied, are provided. Joomdle and individuals associated with its development and support shall not be held responsible for any loss of data, reputation, and/or money in any currency whatsoever. It is strongly advised that this "feature" be installed, configured, tested and proven working in a test environment connected to Paypal's Sandbox development environment prior to being implemented in a production site.