Okay
  Public Ticket #3593343
b2b Bulk order
Closed

Comments

  •  3
    SOHEE started the conversation
    7067091018.png

    We want to display the product name and SKU on separate lines. Is it possible?

    like this...
    Q1000 32GB 2CH 2K Front & 2K Rear Wi-Fi Bluetooth
    (TW-Q1000D32CH (888622016957)

    X800 32GB 1CH 2K Front
    (TW-X800MU32C (888622017800)

  •  2,217
    WebWizards replied

    Hi there,

    I believe you can achieve that by adding the following PHP code snippet to your site:

    add_filter('b2bking_bulkorder_cream_search_name_display', function($name, $product){
        $sku = $product->get_sku();
        if (empty($sku)){
            $sku = '#'.$product->get_id();
        }
        return $product->get_name().'<br>('.$sku.')';
    }, 10, 2);
    

    A PHP snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/


    Let me know if that can solve it for you,

    Kind regards,

    Stefan

  •  3
    SOHEE replied

    good thanks