Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,141
    Plugin Contributions
    0

    Default 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.
    John Patrick
    A Zen Cart Advocate!

  3. #3
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Aug 2005
    Posts
    26,057
    Plugin Contributions
    9

    Default 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.
    Zen-Venom Get Bitten
    Get Your Business Found

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •