Support Forums
Community Discussions
osCommerce integration...
You must be signed-in to post.
| Author | Subject | |
|---|---|---|
| Page: 1 | 2 | ||
| Jason0071 | Subject: 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 Posted: 2005-03-17 16:54:41 | ||
| test_user | Subject: OSC vs ZEN | |
| Should have integrated Zen-Cart. zen-cart.com Better design out of the box! Posted: 2005-03-18 01:55:15 | ||
| Jason0071 | Subject: Zen | |
| They are virtually the same in design, or very close. Zen integration would not take to much time. Jason Posted: 2005-03-18 13:14:54 | ||
| Sanchez | Subject: respect to Jason0071 | |
| Completely I support your undertaking, atutor very much there is no such module. p.s. excuse for my English
Posted: 2005-03-20 16:59:23 | ||
| humaneasy | Subject: eCommerce | |
| First, thanks for doing something that I proposed to do If you need help in testing or some minor coding please ask I know fairly well both osCommerce & Zen Cart. I also posted some usefull classes at atutor.ca/view/2/2749/1.html but I haven't got any time to code it. Best, Lopo PS: Another great option would be to integrate it with Mambo-phpShop (http://www.mambo-phpshop.net). I think there is already some sort of integration for ATutor with Mambo at www.Nuy.info | Downloads->Mambo Posted: 2005-03-21 18:08:04 | ||
| humaneasy | Subject: Atutor, ACollab & Mambo | |
| About this integration and the possible easy integration with phpShop, read Greg's post at www.atutor.ca/view/16/2696/1.html Best, Lopo Posted: 2005-03-21 18:10:12 | ||
| Jason0071 | Subject: phpShop | |
| I'll look at this, but I think that I am going to stick with osCommerce. I would speculate that integrating code so the user only has to log in once maybe somewhat difficult...then again it may be a matter of having the ATutor login script and the osCommerce script set the right session_set_cookie_params and were off and running. I'm sure various session variables also have to be registered, but my experience with sessions is that they can be somewhat tricky especially when SSL is envolved and it will be. The easy part of the mods is getting the login functions to authenticate with whatever database we want, user creation, and enrollment automation...thusfar... Jason Posted: 2005-03-22 17:51:32 | ||
| Jason0071 | Subject: integration progress... | |
| Progress is going well. All code is very easy to change...just minor troubleshooting...code is also fairly basic in function. Mostly just database updates and the ATutor app and OsCommerce app do the rest. So, far code is developed for OsCommerce installation that uses a database for sessions. No SSL integration yet, but that should not be too hard. I'm just working with a basic installation to start. So current mods are as follows: 1) OsCommerce now handles all account creation (uses email address as log in for ATutor). 2) OsCommerce also enrolls users into courses that have been catagorized as private and payed for(this is still in testing). 3) ATutor can log users into OsCommerce and log users out simultaneously. There are still some things to complete before I'm done, but should not be too major. Also, phpShop and ZenCart integration don't seem to be much different. The main part of the mods is updating the database if certain values, variables, criteria...whatever you want to call it...are being met. It's just a matter of compatability and knowing where to put the code. I'll keep you guys updated with my chopped up code if your interested. Jason Posted: 2005-03-23 18:17:57 | ||
| humaneasy | Subject: Debugging and QA | |
| Hi Jason, If you need help in QA and Beta testing please feel free to contact me and I will lend an hand to you. Best, Lopo Posted: 2005-03-23 19:09:59 | ||
| test_user | Subject: ZenCart Compatibility | |
| Jason, We can assist you in the integration with ZenCart, please contact us at contact@zencartskins.com. We look forward to hearing from you. -test Posted: 2005-03-23 19:22:45 | ||
| Jason0071 | Subject: Zen Cart, Debugging etc... | |
| Zen Cart is very impressive, I think I may work on this next...we'll see how much time I have. As far as debugging goes, thanks for the off human_easy. When I have finished the code I will contact you. I will need to go through both apps and make sure there are no bugs anywhere with different types of events. I seem to be running into things I have not thought of that a user may do. Such as setting up the domain cookie for osCommerce in ATutor before the user has a chance to go to the osCommerce app. If you dont osCommerce starts another session, dont want to overload the server, or what if the user goes to osCommerce first...oh there's another one...damn. That will take only a minute though. From a coding stand point the microscope is very focused, but from a user stand point the focus becomes much more objective. I will need someone to help me in streamlining the install that's for sure. In this situation two heads are better than one. Jason Posted: 2005-03-24 13:22:51 | ||
greg![]() | Subject: Thinking ahead... | |
| Jason (et. al.), glad to see you're making progress. You may want to start thinking about a ATutor 1.5 osCommerce/Zen Cart module. An early beta of 1.5 was made available today. The final release is still a couple months away, so you have a chance to get a jump on the next release. Download ATutor 1.5 Beta www.atutor.ca/atutor/download.php Posted: 2005-03-24 19:53:44 | ||
| Jason0071 | Subject: Progress | |
| Yes, progress is going ok. Logging session info is giving me some trouble because both ATutor and osCommerce attempt to do the same thing and then store the session data as previously designed. Using internal classes helps somewhat in speeding up the design process, but I think that writing my own functions or classes may be easier than using osCommerce classes. The reason for this is that I can utilize inherent session functionality in ATutor or osCommerce to start the session and store the data for both systems. If I instantiate and use a class in osCommerce after ATutor starts a session and sets cookie parameters then osCommerce attempts basically to redefine the session and associated variables. This is redundant and uncalled for. However, I need to use some of the existing functions in osCommerce classes to form session strings, variables and such, so writing my own functions that utilize a part of the osCommerce classes seems to be going quicker than wading through hundreds of lines of code and trying to figure out what the flow of information is in osCommerce, blah, blah, blah. Seems like session integration is the most time consuming part of this process, but who wants to log in twice, right...does not seem very professional. I'll leave it up to users to modify osCommerce to match ATutor theme designs or vica versa...maybe in the future I'll develop code that allows osCommerce to automatically use the default theme of ATutor. Anyway, after NONSSL integration is complete I'll be moving on to SSL. I'll keep you updated. Jason Posted: 2005-03-29 14:44:13 | ||
| kiang | Subject: release?? | |
| How will you release this package, Jason?? Maybe XT-Commerce( www.xt-commerce.com/ ) is a good solution, too. Posted: 2005-03-31 02:53:28 | ||
| Jason0071 | Subject: Development stalled... | |
| I have had to put development on pause due to other obligations at work. Open source programming does not pay as well as it should...ha ha. I'll let you know when I resume. I think the ?package?, whatever you want to call it will consist of a atutor_os_inc.php file with either multiple classes developed or functions, depends on how professional I want to get or need to for that matter and all corresponding files that instantiate the classes or call the functions. I will not be wrapping osCommerce in ATutor so mods will need to be made to make it look like ATutor or wrap it in some CMS...however you want to use it. Any other shopping carts will most likely have files such as atutor_zen_inc.php and top level files that require the functions file and associated shopping cart files that need to be changed. I will try to stick with not changing ATutor files once they are moded for the original function calls. So, if a user wanted to switch to a different cart, then all they have to do is update the main ATutor file which requires the new file, upload to the new file and all corresponding files associated with the new cart to mod the install. There would be better ways to go about all this with seemingly endless possibilities, but some require a greater amount of time which I do not have. Anyway, I'll let you know when I resume development. Jason Posted: 2005-04-04 13:26:59 | ||
| Page: 1 | 2 | ||
You must be signed-in to post.


