OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Conflict with PWA
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Payment Modules > Other
Arrowhead123
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!
Coopco
QUOTE (Arrowhead123 @ Mar 21 2006, 03:43 PM) *
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.