Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    27
    Plugin Contributions
    0

    Default adding an extra insert

    I am creating a website.

    I'm using Zen-cart to allow users to pay for a membership to the site with paypal. (no, it's not ######## actually! hahaha)


    I have everything all set up with the exception of 1 thing.

    My website has it's own SQL tables.
    On a successful purchase "/index.php?main_page=checkout_success" I would like insert into my own table that the customer paid. I'm passing the "user id" from my own code, to zen-cart already, and storing that in a session variable.

    I just need to know where zencarts code is where the code resides for a "checkout_success" where it inserts into the *cart_orders table.

    I could then add my own code to do a SQL update on my own table that they did in fact pay, and I'd be all done.

    thanks!

  2. #2
    Join Date
    Jul 2005
    Posts
    27
    Plugin Contributions
    0

    Default Re: adding an extra insert

    For those in the future that want to do this, I figured out a way to do this.

    well, I'm not sure if it was the "correct" way or not, but I just used the define pages editor(under tools in the zen-cart admin menu) and went to "define_checkout_success" and added

    <?php

    $lmasql = "my custom sql here";
    //echo $lmasql;
    $db->Execute($lmasql);
    ?>

    and it worked.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 23 Jul 2011, 05:22 PM
  2. how can I insert extra product info into extra db table?
    By lndlyb4 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Feb 2010, 07:18 PM
  3. how to insert a extra navigation menu ( image ) in zencart template
    By lastpirate007 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jul 2007, 02:53 PM
  4. insert extra field to _customers
    By chac416 in forum General Questions
    Replies: 6
    Last Post: 19 Jun 2006, 06:20 PM

Posting Permissions

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