Home Forums Plugins Store Exporter Deluxe Support [Resolved] Itzik J-Kob? from facebook

Welcome to our community support forums! We're here to help - but if you have an urgent request for a Pro Plugin, you will get a prioritised response through our Premium Support page.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36716

    Hi Michael

    Below is the last post from FB:

    Thank you but this doesn’t work for me on order

    The first part works:

    function woo_ce_custom_order_fields( $fields ) {
    
    $fields[] = array ( 'name' => 'author', 'label' => 'Author', 'default' => 1 ); return $fields;
    
    } add_filter( 'woo_ce_order_fields', 'woo_ce_custom_order_fields' );
    

    this creates another field Author in the csv however the second function suppose to assign values to that columns and it doesn’t work

    this is what I did:

    
    
    function woo_ce_custom_order_item_author($order_item, $order_id = 0 ) {
    
    $order_item->author = "Banana";// $order->post_author;
    return $order_item;
    } 
    add_filter( 'woo_ce_order_item', 'woo_ce_custom_order_item_author', 10, 2 );
    

    it works if I do it with product_item but for some reason it doesn’t work for order_item


    what am I doing wrong?

    thx

    #36721

    The srting “Banana” was suppose to be under Author in all entries.
    It worked for product but not for order.

    Thanks again

    #36731
    Michael Visser
    Keymaster

    Hi propelcommunications, easy… there’s posts everywhere, I’ll help here, let’s leave Facebook and Premium Support alone, I can’t attach files though so will e-mail you directly a sample for custom Order fields

    #36739

    Hi Michael

    Did you email?

    I did not think got anything

    you can email either to izak723@gmail.com or jon@propelcommunications.ca or both

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Itzik J-Kob? from facebook’ is closed to new replies.