Zen Cart Logo
Forums / General Questions / Changes for custom code to run and interface with zencart

Changes for custom code to run and interface with zencart

Locked

Views: 1,727

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
18 Mar 2007, 6:50 PM
#1
mlh avatar

mlh

New Zenner

Join Date:
Mar 2007
Posts:
3
Plugin Contributions:
0

Changes for custom code to run and interface with zencart

Hi everyone, I have been a long time interchange user and I am thinking about moving all my IC sites over to ZC.

Here is my question.

Right now, I have a custom app in IC that runs a lot of perl code, and setups a transaction. A user logs in, enters some values into some IC perl code, and then clicks a button, the IC perl code adds items to the cart of that user, they then check out.

Can some one point me to where I can write php code (its not really OO code either) and have it be able to interact with the zencart API.

I could do it as a module, but its really 3 pages (page 1 -> posts to page 2 -> page 2 posts to page 3 -> page 3 adds items to cart and takes user to checkout.

Thanks,

Mike

18 Mar 2007, 7:14 PM
#2
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: Changes for custom code to run and interface with zencart

Check the wiki http://www.zen-cart.com/wiki/index.php/Developers

You'll find developers instructions in there.

But would'nt it be just as easy to have a user go into the admin section of zen cart to enter the products?

Another idea, is to have your app connect to the mysql db instead of bothering with the zen cart code. You just have to figure out which cells to send the data too.

Good luck.

18 Mar 2007, 7:45 PM
#3
mlh avatar

mlh

New Zenner

Join Date:
Mar 2007
Posts:
3
Plugin Contributions:
0

Re: Changes for custom code to run and interface with zencart

I read over the wiki dev documentation, I did not really find what I am looking for..

There are only 10 "products" but those get chosen from what the user fills out on the first 3 pages, also their attributes get filled in there too.

Mike

18 Mar 2007, 9:50 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changes for custom code to run and interface with zencart

I could do it as a module, but its really 3 pages (page 1 -> posts to page 2 -> page 2 posts to page 3 -> page 3 adds items to cart and takes user to checkout.

There are only 10 "products" but those get chosen from what the user fills out on the first 3 pages, also their attributes get filled in there too.
Trying to do this off cart you will run into the security/sessions area of the code. A session is created when one begins shopping or logs in.