Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I got the same problem.
    I changed the code and it works
    woocommerce-delivery-notes/woocommerce-delivery-notes.php

    change this function to following:

    if ( !function_exists( ‘wcdn_get_order_totals’ ) ) {
    function wcdn_get_order_totals() {
    global $wcdn;

    $totals=$wcdn->print->get_order()->get_total();
    return $totals;
    }
    }

    and go to the template file under print folder:
    print-delivery-notes.php order-summary div change to following

    <div id=”order-summary”>
    <table>
    <tfoot>
    <?php $total=wcdn_get_order_totals(); /*foreach( wcdn_get_order_totals() as $total ) : */?>
    <tr>
    <th class=”description”>Subtotal:<?php /*echo $total[‘label’];*/ ?></th>
    <td class=”price”><?php echo $total; ?></td>
    </tr>
    <?php /*endforeach; */?>
    </tfoot>
    </table>
    </div><!– #order-summery –>

    It works! good luck everyone!

    Thread Starter je_123_au

    (@je_123_au)

    Thanks, I test on other site, it is working.
    this site also use wordpress 3.4, strange things.

    anyway I changed to category instead of tag, and make the site works.

    If anyone know why the strange thing happen in different site, pls post here.

    Thread Starter je_123_au

    (@je_123_au)

    Thanks Chris.

    I did add to my mytheme/functions.php and
    save it, but when I open wp admin panel, it is as same as before.
    page still do not have extra stuff to do?

    thanks so much for your help

    Do I have extra staff to do after change functions.php

    // Make the metabox appear on the page editing screen
    function tags_for_pages() {
    	register_taxonomy_for_object_type('post_tag', 'page');
    }
    add_action('init', 'tags_for_pages');
    
    // When displaying a tag archive, also show pages
    function tags_archives($wp_query) {
    	if ( $wp_query->get('tag') )
    		$wp_query->set('post_type', 'any');
    }
    add_action('pre_get_posts', 'tags_archives');
    Thread Starter je_123_au

    (@je_123_au)

    THANKS christine.

    I prefer to edit function.php, would you mind to give me idea where the coding is and how to do that.

    I see in SEO, they have “title tags”, is this one can use as search function also? like query_post(tag=’blah blah’);

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