jfstyle
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…Thanks! Even if the delivery in the store is disabled and only virtual goods are sold, do these fields still remain mandatory? and no amount of hooks will help, right?
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…Thanks! the order has been placed. Please tell me, do I understand correctly that if mandatory registration is selected, then the fields: country, city, state, zip code and address cannot be made optional?
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…thank you very much! It worked! The changes are saved.
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…For some reason, I can’t do it, because you have it in the screenshot. I have all the fields locked and I don’t see the unlock menu.
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…thank you! I have enabled direct bank transfer, should I check now to disable the required fields in the checkout?
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…Thanks! I can’t create a test site, it’s too time consuming. I disabled all plugins except the necessary ones (Side Cart WooCommerce, SMTP Mailer, WooCommerce, YayCurrency) and enabled the standard theme.
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…Thank you for responding! Yes, still( and even when I switch to the standard theme
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…And one more question, when trying to place an order, even with all the fields, the order is not placed, and this error appears in the console:
Failed to load resource: the server responded with a status of 403 ()
{ "result": "failure", "messages": "\n\u003Cul class=\"woocommerce-error\" role=\"alert\"\u003E\n\t\t\t\u003Cli\u003E\n\t\t\tМы не смогли обработать ваш заказ. Пожалуйста, попробуйте ещё раз.\t\t\u003C/li\u003E\n\t\u003C/ul\u003E\n", "refresh": true, "reload": false }What does it mean?
- This reply was modified 4 months, 3 weeks ago by jfstyle.
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…Have you looked at the screenshots? there’s an error in the script…
jQuery(document).ready(function($){
var checkout_form = $('form[name="checkout"]');
if(checkout_form.length > 0 && !checkout_form.hasClass('checkout')){
checkout_form.addClass('checkout woocommerce-checkout');
}
});- This reply was modified 4 months, 3 weeks ago by jfstyle.
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…Good evening! I keep struggling with unnecessary fields, I found this error in the console, can you fix it?
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…Hello! please help with the question.
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…Thank you for the detailed reply!
I used your code to make the fields optional. And the error immediately made itself felt. the video is attached.
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…Good afternoon! I’m coming back to you again 🙂 The StoreBuild plugin was not to blame. The fault code is in functions.php which disable unnecessary fields for virtual goods.
add_filter( 'woocommerce_checkout_fields' , 'truemisha_checkout_for_virtual_products', 25 ); function truemisha_checkout_for_virtual_products( $fields ) { $is_only_virtual = true; foreach( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { // если хотя бы один товар не виртуальный, то ничего делать не будем if ( ! $cart_item['data']->is_virtual() ) { $is_only_virtual = false; break; } } if( $is_only_virtual ) { // отключаем поле Компания unset( $fields[ 'billing' ][ 'billing_company' ] ); // отключаем поле Адрес 1 unset( $fields[ 'billing' ][ 'billing_address_1' ] ); // отключаем поле Адрес 2 unset( $fields[ 'billing' ][ 'billing_address_2' ] ); // отключаем поле Населённый пункт unset( $fields[ 'billing' ][ 'billing_city' ] ); // отключаем поле Почтовый индекс unset( $fields[ 'billing' ][ 'billing_postcode' ] ); // отключаем поле Страна/регион unset( $fields[ 'billing' ][ 'billing_country' ] ); // отключаем поле Область/район unset( $fields[ 'billing' ][ 'billing_state' ] ); // отключаем поле Телефон unset( $fields[ 'billing' ][ 'billing_phone' ] ); } return $fields; }if you delete it, the buyer registers, and the order is placed. Then another question arises – how do I disable these extra fields? The store sells only virtual goods, delivery is not needed, and these fields only annoy customers.
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…thank you!
Forum: Plugins
In reply to: [WooCommerce] There was an error processing your order…I conducted the experiment as you wrote. The error appears when the StoreBuild plugin is enabled – https://ww.wp.xz.cn/plugins/shopbuild / And what should I do now? write to support the plugin?