Support » Plugin: WooCommerce Order Notes Window » Not Working – "Cannot load Woocommerce."

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ash

    (@ashbryant)

    I’m getting the same error. I think they have changed the way you access plugin settings here.

    I got it to work by editing the url a little like this http://your-website.co.uk/wp-admin/admin.php?page=wc-settings&tab=order_notes_window

    or edit line 69 of the plugin to read

    '<a href="' . admin_url('admin.php?page=wc-settings&tab=order_notes_window') . '">' . __('Settings', 'woocommerce') . '</a>',

    and line 294
    echo '<a href="' . admin_url('admin.php?page=wc-settings&tab=' . $name) . '" class="' . $class . '">' . $label . '</a>';
    Hope it helps someone

    Hi,
    thanks for the tip with the URLs and the code.
    But even then the plugin does not work.

    I changed the default message to private note, but woocoommerce always shows customer notes first and the customer note icon does not open a window.

    Same for you?

    Kodaworks

    (@kodaworks)

    Hi,

    I too had the same problem. Great plugin and realy wanted to use it for my latest project so after reading above I decided to look into it for you.

    Carry out the changes mentioned above, changing the two links will get you onto the settings page.

    Now to get the Modal popup for each order working on the Orders list there are two more changes needed.

    1. on line 149 change “order_comments” to “order_notes” which was a change woocommerce made in the naming of the column in the orders list.

    2. on line 80 you need to change
    jQuery('#the-list #post-<?php echo $post->ID; ?>').find('.order_comments a.post-com-count').attr("href", "#TB_inline?width=600&height=550&inlineId=order-notes-<?php echo $post->ID; ?>").addClass("thickbox");

    to

    var notes_link = '<a class="thickbox" href="#TB_inline?width=600&height=550&inlineId=order-notes-<?php echo $post->ID; ?>">Notes</a>';
    				jQuery('#the-list #post-<?php echo $post->ID; ?>').find('.order_notes span').after(notes_link);

    This simply injects an extra anchor link which will open the modal.

    Hope that helps someone too.

    Kind Regards

    Philip C

    Kodaworks

    (@kodaworks)

    Sorry the second change is simple again due to woocommerce changing the name of the element the original plugin was targeting.

    Also as far as I can see everything else works fine. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not Working – "Cannot load Woocommerce."’ is closed to new replies.