Arrowhead123 Posted March 21, 2006 Posted March 21, 2006 Hello, I have a few problems trying to integrate the devosc paypal modification into my oscommerce cart. In step 2, it states this: # tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } # Replace with: //begin PayPal_Shopping_Cart_IPN tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { PayPal_osC::reset_checkout_cart_session(); } //end PayPal_Shopping_Cart_IPN However, in my code, that conflicts with a modification I have that allows the customer to buy items without an account. Here is the code that does that: //begin PWA // tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); // Added a check for a Guest checkout and cleared the session - 030411 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); } } //end PWA Could someone please guide me in how I can go about merging these two? Thanks! Quote
Guest Posted March 21, 2006 Posted March 21, 2006 Hello,I have a few problems trying to integrate the devosc paypal modification into my oscommerce cart. In step 2, it states this: # tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } # Replace with: //begin PayPal_Shopping_Cart_IPN tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { PayPal_osC::reset_checkout_cart_session(); } //end PayPal_Shopping_Cart_IPN However, in my code, that conflicts with a modification I have that allows the customer to buy items without an account. Here is the code that does that: //begin PWA // tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); // Added a check for a Guest checkout and cleared the session - 030411 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); } } //end PWA Could someone please guide me in how I can go about merging these two? Thanks! Sorry that my post in the thread did not help. I can only say that it was what worked for me. Maybe send DevOSC a PM. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.