Nadun
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How can i get my IPN works in woocommerce paymentHey queenielow,
I haven’t tried “https://yoursite.com/?paypalListener=paypal_standard_IPN” will try tonight.
wow! Good that it worked!! If your custom code only change the order status
$order->payment_complete()
should do that and reducing the stock. Make sure your stock levels are not reducing twice.There is a “update_status()” method also if you only wanna do that.
https://wcdocs.woothemes.com/apidocs/source-class-WC_Order.html#1066Hope it works for me too!
Forum: Plugins
In reply to: [WooCommerce] How can i get my IPN works in woocommerce paymentHey queenielow,
My IPN is enabled and set to “/checkout/order-received” in paypal but still doesn’t work.
Do you think what I said above it valid?
payment_complete()
https://wcdocs.woothemes.com/apidocs/source-class-WC_Order.html#1134Forum: Plugins
In reply to: [WooCommerce] How can i get my IPN works in woocommerce paymentHey queenielow,
Thank you very much for the code. I was going through it and code files in woocommerce last night. My PHP is a bit rusty but understood most of your code.
Is the variable
$order
an object of “WC_Order” (woocommerce/classes/class-wc-order.php) class? If so can we just call$order->payment_complete()
?It will update status and reduce stock if it works. Of course this all maybe wrong as I am so out of touch in PHP.
What do you think? Can we call that function from thankyou.php?
Forum: Fixing WordPress
In reply to: I can't go to /wp-admin/options-permalink.phpWhen I deactivate plugins, I don’t get 404. I stay in the wordpress backend but where the settings should be is blank (blank page)
Any ideas?
Forum: Plugins
In reply to: [WooCommerce] How can i get my IPN works in woocommerce paymentHi queenielow,
So what kind of script do I need to add in the thankyou.php file? Is it too big to put here?
In settings I have all script options enabled(ticked).
- Enable AJAX add to cart buttons on product archives
- Enable WooCommerce lightbox on the product page
- Enable enhanced country select boxes
Forum: Fixing WordPress
In reply to: I can't go to /wp-admin/options-permalink.phpHi Krishna,
It’s on a private server as it is not published yet. What can you find from the site? Let me know and I’ll check it out.
Thank you for your time.
Cheers,
Nadun.Forum: Plugins
In reply to: [WooCommerce] How can i get my IPN works in woocommerce paymentHey queenielow,
Yes I use paypal for payments.
The order stays in “Pending” until I manually click the “processing” button in “Woocommerce” –> “Orders”.
If the order is in “pending”, as the customer I see in “My account” under actions “Pay” and “view” which is wrong because it’s already paid. I can’t go and manually click “processing” for every order I get ?? (the stock doesn’t reduce also)
Any help would be much appreciated.
Thank you.Cheers,
Nadun.Forum: Plugins
In reply to: [WooCommerce] How can i get my IPN works in woocommerce paymentHey queenielow,
Thanks for replying.
No I have not modified any code in woocommerce yet. When I buy a product, I can pay for the item and come back to my site but in “My Account” section it says that I have to pay until I go on the back-end and change the state to processing. It doesn’t automatically set it or reduce stock.
Not sure what is going on. Can you give me a starting point if I want to try go modify stuff in the back-end?
Thank you very much!
Cheers,
Nadun.Forum: Plugins
In reply to: [WooCommerce] How can i get my IPN works in woocommerce paymentHi queenielow,
How did you fix it?