Hi,
well we need to see what hooks (actions) are available inside your booking plugin and then call our render function there. We are using following action for orders:
add_action("woocommerce_order_details_after_order_table", array($this , 'render_wooconvo_myaccount'));
hello where are you writing this code? I want to get the message box under the order details
this code is under classes/plugin.class.php file.
How disabled my orders page VIEW AND MESSAGE text
You can use this filter:
add_filter('wooconvo_view_order_text', function($message) { return 'Your Message'; }, 99);
I have similar issue, I want to remove the conversation box from _after_order_table and move it after order notes section.
I tried this but it didnt work:
remove_action("render_wooconvo_myaccount");
add_action("woocommerce_after_order_notes", array($this , 'render_wooconvo_myaccount'));
Hi,
try this:
remove_action("woocommerce_order_details_after_order_table", array('NM_PLUGIN_WooConvo' , 'render_wooconvo_myaccount'));
or this:
remove_action(“woocommerce_order_details_before_order_table”, array(‘NM_PLUGIN_WooConvo’ , ‘render_wooconvo_myaccount’));
afraid no – these didn’t work – the chat is still showing in same place. I need it to be above the order notes section woocommerce_after_order_notes
Well, then you should remove this from plugin file: classes/plugin.class.php
Remove what??
And I can’t see from your code where it says it will hook the chat box to the correct place.
Please update and advise (ps we are pro paying customer)
Hi,
please use this:
add_action('init', 'wooconvo_hoo_me');
function wooconvo_hoo_me() {
$wooconvo = new NM_PLUGIN_WooConvo();
add_action("woocommerce_after_order_notes", array($wooconvo , 'render_wooconvo_myaccount'));
}
NOTE: The hooks you are using must pass $order param to callback function.
Still no, the box is still in the same place and not moved. I am using the PRO version of your plug in.
as I remember, woocommerce_after_order_notes hook is called on checkout page, not after order. So how it could be possible to render before checkout?