Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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!

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...