Public Ticket #4311356

Changing text in Tiered pricing & table

Closed
Comments
2 Tickets
Treestart started the conversation 1 year ago on August 12, 2025 at 2:12pm

The standard text for the tiered pricing Table is 'product quantity' and 'price per unit'.  I would like to change that. How can I do that?

2,762
KingsPlugins replied 1 year ago on August 13, 2025 at 9:03pm

Hi there,

Certainly, we can change any plugin text, using a code snippet. For those 2 texts, you can use this snippet:

add_filter('gettext', function($translated_text, $text, $domain) {
    if ($domain === 'b2bking') {
        switch ($text) {
            case 'Product Quantity':
                return 'Your Desired New Text for Quantity'; // Change this
            case 'Price per Unit':
                return 'Your Desired New Text for Price'; // Change this
        }
    }
    return $translated_text;
}, 10, 3);

You can add this code snippet to your theme's functions.php file or using any code snippets plugin. Just replace the "Your Desired New Text" parts with whatever text you'd like to display instead.

Let me know if I can help,

Kind regards,
Stefan

Sign In