• Resolved immas

    (@immas)


    Hi,

    Vendors/Customers on my site don’t have an orders page, they have a bookings page (Woocommerce bookings).

    How can I edit the code to place the contact box in the bookings area instead of the orders?

    Thanks in advance.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author N-Media

    (@nmedia)

    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

    Plugin Author N-Media

    (@nmedia)

    this code is under classes/plugin.class.php file.

    How disabled my orders page VIEW AND MESSAGE text

    Plugin Author N-Media

    (@nmedia)

    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'));
    Plugin Author N-Media

    (@nmedia)

    Hi,

    try this:

    remove_action("woocommerce_order_details_after_order_table", array('NM_PLUGIN_WooConvo' , 'render_wooconvo_myaccount'));

    Plugin Author N-Media

    (@nmedia)

    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

    Plugin Author N-Media

    (@nmedia)

    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)

    Please let me know

    Plugin Author N-Media

    (@nmedia)

    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.

    Plugin Author N-Media

    (@nmedia)

    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?

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Moving conversation box.’ is closed to new replies.