Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I use Woocommerce plugin. All works great, but I need add to PayPal IPN 'custom' field only 1 word instead "order_id" that writes at 'custom' field now.

I trying edit this file: ...woocommerce/classes/gateways/paypal/class-wc-gateway-paypal.php here you can see code

here screenshot of code that maybe needs to change

Need to change script that send "order_id" to PayPal on script that send my word to PayPal. That's all.

I believe it's easy to do. Please help. Appreciate any answers. Thanks.!

share|improve this question
    
Big thanks! That's exactly what I need :) –  Tuffguy Apr 16 '13 at 10:45
add comment

1 Answer

You almost gave the answer yourself :o)

replace

'custom' => serialize( array( $order_id, $order->order_key ) ),

with

'custom' => 'yourword',

and you're done!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.