Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

MVS 1.1 and PAYPAL_IPN 2.2

 

Has anyone successfully merged these two? Is there anyplace that documents how to merge them?

 

It seems like it can be quite complicated and I have a LOT of contribs in my store, but the single largest problem I have is people not returning from Paypal after making their payment, then I have to build the order manually in the db, if I can find the cart and it hasn't been modified.

 

Any help would be greatly appreciated. I have searched the MVS thread and the PAYPAL_IPN thread and can find where different people have said they were working on it, but I have yet to see where anyone has successfully completed it and I can't find instructions or directions any where.

 

Thanks for any feedback.

Posted

I have gone through the MVS 1.1 installation routine and taken the instructions for updating checkout_process.php and have applied those changes to the paypal_ipn.php and ipn.php files, however I can't figure out where to put the very first update.

 

In the checkout_process.php portion it says

 

===================
Find Lines 42, 43 & 44
===================

// load the selected shipping module
 require(DIR_WS_CLASSES . 'shipping.php');
 $shipping_modules = new shipping($shipping);


=============
Replace With
=============

//MVS start
   // load the selected shipping module
  if (($total_weight > 0 ) || (SELECT_VENDOR_SHIPPING == 'true')){
       include(DIR_WS_CLASSES . 'vendor_shipping.php');
     } elseif (($total_weight > 0 ) || (SELECT_VENDOR_SHIPPING == 'false')){
       include(DIR_WS_CLASSES . 'shipping.php');
     }
     $shipping_modules = new shipping($shipping);	
//MVS End

 

But I can not figure out where to make this change in those two files.

 

Again, any help is greatly appreciated.

  • 3 weeks later...
Posted

I'm stuck, too! If anyone can help please let me know!

The tomb could not hold God's Son...but your heart can

  • 1 month later...
Posted
...

 

But I can not figure out where to make this change in those two files.

 

Again, any help is greatly appreciated.

 

In the Paypal IPN install guide, it says "paypal_ipn.php bypases checkout_process by loading a redirect into the before_process. No code in checkout_process.php after the before_process() is used (around line 50)."

 

The first change is before line 50, so it should work just fine if you made the proper changes to the other files. Would you mind sharing those modified files with the community, so we can have a better look at what you have done so far?

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