Jump to content
Sign in to follow this  
geekoh

MVS and IPN

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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


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

Share this post


Link to post
Share on other sites
...

 

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×