2005-03-17 17:03:29
osCommerce integration
I have almost completed an osCommerce integration with ATutor. I am getting to the point where I need to test for any errors involving processing users, enrollment...etc... I am not done yet, but progress is going well.
Has anyone done this before with any shopping cart? I would be interested to know if I am reinventing the wheel here.
Anyway, mods are as follows:
1) ATutor sends Guest over to osCommerce for registration. This is no longer handled by ATutor, osCommerce enters the user data into ATutor database, using the email address as the login for ATutor and osCommerce(this has not caused a problem as of yet). ATutor and osCommerce handle sessions somewhat differently so I have not integrated the login function. In other words, even if a user logs into ATutor he or she will have to log into osCommerce to make a purchase. I may work on this later.
2) All users have to purchase courses labeled as private, therefore if a user creates an account and wants to enroll in a private course he or she will be redirected to osCommerce using category and course variables( i.e.: product_info.php?(ATutor) current_cat, couse = (osCommerce)cPath, products_id). User will have to log into osCommerce to complete purchase.
3) After purchase is made or confirmation of the AVS code from the payment gateway or a confirming code is received from the gateway (using Authorizenet) then enrollment data is placed into ATutor database. User now will be enrolled.
This is a general overview and is not yet completed. Obviously, there is a considerable amount of decoding (so to speak) to understand others open source programming, but progress is going well. I do have a few questions though for greg which I will post soon.
So, the main reason for this post is to find out if anyone has done anything like this and been successful.
Also, to find out if anyone wants the code snippets and directions of where to place them.
Jason