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!

