• Resolved jaypreet

    (@jaypreet)


    Hello,

    Do you support WC vendors? If yes then is it possible to get invoice by each sellers address and name and tax number?

    Kindly guide.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Not out of the box yet, but it’s possible. Check out this thread (and the link to the github discussion):
    https://wordpress.org/support/topic/new-filter-for-generate_pdf_ajax/#post-8568391

    Hope that helps!
    Ewout

    Thread Starter jaypreet

    (@jaypreet)

    Hello,

    Where to ass below code in which file and line. I am weak in coding and need guidance. I am using pro, and free version of your plugin.

    Thanks

    add_filter(‘wcv_orders_add_new_row’, function($new_row){
    if ( !class_exists( ‘WooCommerce_PDF_Invoices’ ) ) {
    return false;
    }
    $order_id = $new_row->order_number;
    $order = new WC_Order ( $order_id );

    $vendor_pdf_actions = array(
    ‘invoice’ => array (
    ‘class’ => ‘button tips wpo_wcpdf invoice’,
    ‘url’ => wp_nonce_url( admin_url( ‘admin-ajax.php?action=generate_wpo_wcpdf&template_type=invoice&order_ids=’ . $order->id ), ‘generate_wpo_wcpdf’ ),
    ‘label’ => sprintf( ‘‘, WooCommerce_PDF_Invoices::$plugin_url . ‘images/invoice.png’),
    ‘target’ => ‘_blank’
    ),
    ‘packing-slip’ => array (
    ‘class’ => ‘button tips wpo_wcpdf packing-slip’,
    ‘url’ => wp_nonce_url( admin_url( ‘admin-ajax.php?action=generate_wpo_wcpdf&template_type=packing-slip&order_ids=’ . $order->id ), ‘generate_wpo_wcpdf’ ),
    ‘label’ => sprintf( ‘‘, WooCommerce_PDF_Invoices::$plugin_url . ‘images/packing-slip.png’),
    ‘target’ => ‘_blank’
    ),
    );

    $new_row->row_actions = array_merge($new_row->row_actions, $vendor_pdf_actions);

    return $new_row;
    }, 10, 1);

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! This is a free plugin and since you are using a Pro version of WC Vendors, I recommend contacting their support.

    Ewout

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

The topic ‘Support for WC Vendors Pro’ is closed to new replies.