Public Ticket #3593343

b2b Bulk order

Closed
Comments
14 Tickets 4
SOHEE started the conversation 3 years ago on February 26, 2024 at 7:31pm
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,762
KingsPlugins replied 3 years ago on February 28, 2024 at 12:18pm

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://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

Let me know if that can solve it for you,

Kind regards,

Stefan

Sign In