PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

"In Stock products only" snippet conflict with "Stripe"

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi

I use this snippet of this tutorial

2
3
4
5
6
add_filter('woof_get_request_data', 'my_woof_get_request_data');
function my_woof_get_request_data($data){
    $data['stock']='instock';
    return $data;
}

but after using this snippet the stripe payment plugin not working! I think there is some conflict with the security check of the stripe.
I tried different themes and still the same issue.

if you want I could provide a staging area to test it.

Hello Sina

Please  drop  me wp-admin+FTP access( https://c2n.me/43SC6rb.png -> https://c2n.me/42BAoj4.png )  to your  test site

I sent you staging area.

Hello

Please  do a test

in the staging area? did you make some changes?
I have to test with a real card to be sure. let me check.

not working. you can check the last order in the staging area. pending payment. stripe does not pass through

hello

Ok! Please  try  now

it's working fine now. but you disabled the flag in stock by default !

Hello

Right! I want to know what(code) exactly affects this

yes, I tested it with everything. only after adding that part of the code. the problem occurring

Hello

please resume functions.php

You have invalid characters in your code or the file manager has bugs

Code changes in this editor give unpredictable results

sorry I did not understand exactly. what should I do?

Hello

Roll back to old version functions.php

so is it solved the problem ?!

No! but it will allow me to continue my research - https://c2n.me/4bDlboY.png

ok, can you please let me know how we can solve this issue?

Hello

Rebuild old version of functions.php

OR  disable  current  theme