I’m getting the following error message on my error log:
payment_method was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_COD->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_processing'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array('woocommerce_order_status_pending_to_processing_notification'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_Processing_Order->trigger, WC_Email->get_content, WC_Email_Customer_Processing_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/woocommerce/templates/emails/customer-processing-order.php'), do_action('woocommerce_email_order_details'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails->order_details, wc_get_template, include('/plugins/woocommerce/templates/emails/email-order-details.php'), do_action('woocommerce_email_before_order_table'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Gateway_CODPF->email_instructions, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
Wordpress 5.4.1. and Woocommerce 4.1.0
]]>Hi everyone,
I installed the plugin but it doesn’t allow me to choose a specific shipping method to work with. When I click on the field it doesn’t show me the shipping methods avaible and neither if I try to write it manually. If I left the field blank the plugin works for all methods, but I don’t want that.
Can anyone help me, please??
Thanks
]]>Hi,
The plugin’s is_available() is outdated and cause fatal errors when someone tries to visit the Menus from the WordPress dashboard(wp-admin/nav-menus.php).
Also, this method throws PHP notices while accessing the dashboard.
[09-Oct-2018 05:39:05 UTC] PHP Notice: Undefined offset: 1 in /home/public_html/wp-content/plugins/woo-cod-plus-fee/ngm-wc-codpf.php on line 398
Plugin’s compatibility with lastest WooComemrce must be fixed.
]]>Hello,
I am using woocommerce for my online store and I am really happy with it, however I want Cash on delivery to be my only payment method. I don’t want any online transactions.
When I enable only COD as a payment method and try to complete the order, I get an error message that states that I have not selected a payment method and I am unable to finish the order.
When I enable an online payment method along with the COD, for example I enable Bank transfer, I can complete the order with no problem. I see an error message though, that says: “Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order will not be shipped until the funds have cleared in our account.”.
And I don’t want that, since I have messages throughout the site that warn the customers that the only accepted payment is COD. So please could somebody give me an insight as to what I have to do to make Cash on delivery my only payment method.
Thank you in advance for your time!
Regards,
Chris
Hiya! The js file path of your plugin is wrong.
Replace line 53 :
wp_enqueue_script('ngm-wc-codpf', plugins_url() . '/ngm-wc-codpf/assets/js/ngm-wc-codpf.js', array('wc-checkout'), false, true);
With the following :
wp_enqueue_script('ngm-wc-codpf', plugins_url() . '/woo-cod-plus-fee/assets/js/ngm-wc-codpf.js', array('wc-checkout'), false, true);
Hi,
Fee for Cash on Delivery not show when switch shipping method on checkout page (or not work correctly).
skript note refresh – jQuery(‘body’).trigger(‘update_checkout’)
Steve
]]>Hey, great plugin! But I have a problem
If “Enable for shipping methods” is blank, the plugin works ok.
If I select a shipping method, the COD option won’t show up.
I tried to select ALL my shipping methods, and still no COD option.
Can you help me?
Thanks