Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Big uhoh... PayPal IPN and option type = NO


Guest

Recommended Posts

I don't understand it, since the paypal IPN mod (v0981 for 2.2) doesn't modify the checkout pages except the payment... but anyway.

 

I started taking orders with OSC with authorize.net and paypal as the two payment options. Started getting PayPal payments with no order... people weren't clicking continue in PayPal to let OSC know the order was paid for, and OSC just throws those orders out I guess.

 

So I found the PayPal IPN contribution and installed it manually (made the few changes it requires)... now orders and payments stay together for paypal without having to click continue, but the orders are coming through with no values for the product option attributes. I'm using "option type feature 1.6" contribution for text options.

 

If I pay by credit card, the options are there. If I pay by IPN, the options are all blank. I don't understand it.

 

Anyone have any ideas?

Link to comment
Share on other sites

Bleh, didn't realize the page PayPal is told to send the IPN response to actually updates the product table... so I had to update that code to include the extra fields code. Now it seems to be working... and two more orders processed. Amazing business, and osC makes it work better :)

Link to comment
Share on other sites

  • 3 months later...

I had similar problem. I have Option Type Feature installed and I upgraded to Paypal IPN Shopping Cart 1.7. When a recieved a customers order email, the text options would just come back as 'TEXT'. I discovered there was a problem when the data came back from PayPal.

 

Here's what I did to fix it

 

in catalog/paypal.ipn

 

change this line:

'products_options_values' => $attributes_values['products_options_values_name'],

 

to this:

 

'products_options_values' => $order->products[$i]['attributes'][$j]['value'],

 

 

 

change this line:

 

$products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . $attributes_values['products_options_values_name'];

 

 

to this:

 

$products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . tep_decode_specialchars($order->products[$i]['attributes'][$j]['value']);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...