Shop integration

  • bob gould
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 7 months ago - 12 years 7 months ago #1 by bob gould
Shop integration was created by bob gould
VM 2.0.22c
Joomdle 0.92
Moodle 2.5

Symptom Statement:
Course information does not seem to import into VM.
Defined category id is not being updated into virtuemart_product_categories table
Price from Joomdle Enrollment is not being updated into virtuemart_product_price
Course name is coming in fine.
Listing products in VM produces this error vmdebug $product->virtuemart_category_id is empty for every product listed.

If I assign the category that I picked in joomdle (1) to a product and fill in a price then I can reload from Moodle and get price updates.

At this point I can purchase the course, using VM and Authorize.net in sandbox mode and the purchase completes with a status of "Confirmed" however the joomla/joomdle user is not enrolled into the moodle course. I can enroll them manually from moodle and that status is recognized in joomla/joomdle and changes the Buy button to a Go To course button.

So... At this point Joomdle shop import does not set category id number into products and does not update prices. If I do those steps manually thru the VM interface I can purchase but NOT get enrolled.

I still need the enrollment piece. I'm just guessing that the enrollment code is not getting called at all. If you can point me to the PHP module that should be calling enrollment maybe I can move forward.

UPDATE:
I installed hikashop as a test and the process for populating product from moodle worked right away. I then initiated a purchase using the sandbox account from the Authorize.net account and still NO enrollment. Lots of emails documenting the successful and completed purchase but no moodle enrollment.
Last edit: 12 years 7 months ago by bob gould.

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #2 by Chris
Replied by Chris on topic Shop integration
Hi Bob,

There really shouldn't be too much difference between using VM and Hikashop. Both are using a plugin system that is leveraged to connect to Joomdle.

Basic steps:
- Install shopping cart and get it working without Joomdle / Moodle integration
- Install joomdle plugins in Moodle (authorisation and enrollment) and get them all working without touching the joomla shopping cart. Ie ensure all green ticks in system health, sign-sign on, etc.
- With all the individual pieces working now work on integration which is done through the Joomdle plugins and Joomdle configuration. The main one people miss out on is the shopping cart category must be the same as that specified in Joomdle. If this does not happen, courses will not appear in the shopping cart. Also, you will need to ensure you set prices in Moodle and tell the courses to allow for enrollment.
- Test / play with the various options to show on the course details page ie buy button, etc.

Please Log in or Create an account to join the conversation.