Jump to content

the GreatZorglub

Members
  • Content count

    28
  • Joined

  • Last visited

Profile Information

  • Real Name
    Zorglub Legrand
  • Location
    Toronto
  1. the GreatZorglub

    Official PayPal IPN Support Thread

    Integrating CCGV and Afiliates into PayPal IPN: Update. OK, I make no representation that this works for everybody and in every circumstances, but it seems to work for me so far. Note: I am still testing, so if you have input in this, go ahead and help us. So. I have made the following changes to incorporate CCGV and Affilitaes in Paypal IPN v. 2.2. 1 - In file paypal_ipn.php, i have made the following changes (the file actually is "paypal_ipn.php,v 2.1.0.0 13/01/2007 16:30:28") 1.1 - At or around line 205, you will see: $sql_data_array = array('orders_id' => $insert_id, 'products_id' => tep_get_prid($order->products[$i]['id']), 'products_model' => $order->products[$i]['model'], 'products_name' => $order->products[$i]['name'], 'products_price' => $order->products[$i]['price'], 'final_price' => $order->products[$i]['final_price'], 'products_tax' => $order->products[$i]['tax'], 'products_quantity' => $order->products[$i]['qty']); tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array); $order_products_id = tep_db_insert_id(); Right below "$order_products_id = tep_db_insert_id();", insert this: $order_total_modules->update_credit_account($i);// CCGV 1.2 - at or around line 493, you'll find this: // unregister session variables used during checkout tep_session_unregister('sendto'); tep_session_unregister('billto'); tep_session_unregister('shipping'); tep_session_unregister('payment'); tep_session_unregister('comments'); tep_session_unregister('cart_PayPal_IPN_ID'); Right below "tep_session_unregister('cart_PayPal_IPN_ID');", insert this: if(tep_session_is_registered('credit_covers')) tep_session_unregister('credit_covers');// CCGV $order_total_modules->clear_posts();// CCGV 1.3 - at or around line 264, you will find this: tep_session_register('cart_PayPal_IPN_ID'); // Terra register globals fix $_SESSION['cart_PayPal_IPN_ID'] = $cartID . '-' . $insert_id; } } return false; } Just above the "return false;", insert this: // Include OSC-AFFILIATE require(DIR_WS_INCLUDES . 'affiliate_checkout_process.php'); 2 - Now, in file ipn.php (located deep inside the "ext" directory - it's actually file $Id: paypal_ipn.php,v 2.1.0.0 13/01/2007 16:30:21): 2.1 - at or around line 227, you will find this: // PRODUCT LOOP ENDS HERE right above "// PRODUCT LOOP ENDS HERE", insert the following code: $order_total_modules->apply_credit();// CCGV That's it, and so far, it works for me. But: Alltogether now: Backup your files! Do I need to say this also? Use at your own risk! And if it does not work for you: Please don't blame me!
  2. the GreatZorglub

    Official PayPal IPN Support Thread

    At the suggestion of Terra, I have installed version 1.3 because I have CCGV and Affiliates contribs on my site. Works OK, so far, but I'd like to install 2.2, and I was wondering... I have compared the file paypal_ipn.php vor version 1.3 and 2.2, and oh! joy, I can pretty much place all the CCGV and Affiliate code in 2.2 at pretty much the same place they are located in teh code of 1.3. Except for one, itsy-bitsy line of contrib. In 1.3, there is a chunk of code to send email to the customer. It starts with: // lets start with the email confirmation $email_order = STORE_NAME . "\n" . Right above that in 1.3, we are to place the following line of code: $order_total_modules->apply_credit();// CCGV But! In 2.2, there does not seem to be any such thing as email confirmation code. So my question is, is that email code located somewhere else, or is there simply no email confirm in 2.2? I can't believe we can just ignore that call to the apply_credit() function. Would anybody know? Thanks, Zorglub.
  3. the GreatZorglub

    Official PayPal IPN Support Thread

    At the suggestion of Terra, I have installed version 1.3 because I have CCGV and Affiliates contribs on my site. Works OK, so far, but I'd like to install 2.2, and I was wondering... I have compared the file paypal_ipn.php vor version 1.3 and 2.2, and oh! joy, I can pretty much place all the CCGV and Affiliate code in 2.2 at pretty much the same place they are located in teh code of 1.3. Except for one, itsy-bitsy line of contrib. In 1.3, there is a chunk of code to send email to the customer. It starts with: // lets start with the email confirmation $email_order = STORE_NAME . "\n" . Right above that in 1.3, we are to place the following line of code: $order_total_modules->apply_credit();// CCGV But! In 2.2, there does not seem to be any such thing as email confirmation code. So my question is, is that email code located somewhere else, or is there simply no email confirm in 2.2? I can't believe we can just ignore that call to the apply_credit() function. Would anybody know? Thanks, Zorglub.
  4. the GreatZorglub

    Official PayPal IPN Support Thread

    At the suggestion of Terra, I have installed version 1.3 because I have CCGV and Affiliates contribs on my site. Works OK, so far, but I'd like to install 2.2, and I was wondering... I have compared the file paypal_ipn.php vor version 1.3 and 2.2, and oh! joy, I can pretty much place all the CCGV and Affiliate code in 2.2 at pretty much the same place they are located in teh code of 1.3. Except for one, itsy-bitsy line of contrib. In 1.3, there is a chunk of code to send email to the customer. It starts with: // lets start with the email confirmation $email_order = STORE_NAME . "\n" . Right above that in 1.3, we are to place the following line of code: $order_total_modules->apply_credit();// CCGV But! In 2.2, there does not seem to be any such thing as email confirmation code. So my question is, is that email code located somewhere else, or is there simply no email confirm in 2.2? I can't believe we can just ignore that call to the apply_credit() function. Would anybody know? Thanks, Zorglub.
  5. the GreatZorglub

    Canada Interac

    If anybody out there would like to work on an Canadian Interac module, I'd be most happy to help. :thumbsup: Let me know.
  6. the GreatZorglub

    OSC-Affiliate

    Hi - Great contrib! I operate a multi-languages site, and I was wondering... I want to have some banners in English, with the link pointing to the English version of the site; and some banners in French, pointing to the French version of the site. Is this possible? Thanks a bunch.
  7. the GreatZorglub

    PayPal_Shopping_Cart_IPN

    Loonies. The one dollar has a loon on the back side. Or sometime the parlement building, but that's full of loonies as well.
  8. the GreatZorglub

    PayPal_Shopping_Cart_IPN

    Itemized
  9. the GreatZorglub

    PayPal_Shopping_Cart_IPN

    OK, we have everything - forgot to check the CAD as the default currency - that fixed everything EXCEPT.... The Paypal screen shows the purchases, the shipping, but not the taxes! Any idea?
  10. the GreatZorglub

    PayPal_Shopping_Cart_IPN

    Hold everything, I may have it...
  11. the GreatZorglub

    PayPal_Shopping_Cart_IPN

    No, that does not work. I set the currency to CAD in admin, then listed a new product. The product is at 0 - no dollar sign,no decimals, no suffix. Now, if I try to screw up the code on the US currency in admin (from USD to XYZ), it does not change anything! The prices are posted normally - How weird!
  12. the GreatZorglub

    PayPal_Shopping_Cart_IPN

    The problem was writing the currency to Paypal, which got resolved when I changed the language default to CDA. But that screwed up the shopping cart process, as I mentioned earlier - If I start shopping in US dollars, it always resorts to Can dollars when I check out. The only way I had to get rid of that was to go in config and selct 'false' for defaultlanguage currency. Let me try a new product, we'll see.
  13. the GreatZorglub

    PayPal_Shopping_Cart_IPN

    Code for what? The currency? I have to use CDA and USD. Also, all my currencies have a suffix - Can that be a probem? I have to use CDA in the admin, otherwise all my Canadian Dollar price fall to 0
  14. the GreatZorglub

    PayPal_Shopping_Cart_IPN

    My PRICES, not my proces... And when I try to buy in US, it does the same thing - the paypal "white screen of death" L.P.
  15. the GreatZorglub

    PayPal_Shopping_Cart_IPN

    Greg, thanks a bunch. Replaced all my CDA's with CAD's - The good news is, my proces are still there - nothing goes to "0". But now when I get to Paypal, it tells me the cart is empty. It does not even show my custom paypal page. Any idea now?
×