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.
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?
Hi there,
Certainly, we can change any plugin text, using a code snippet. For those 2 texts, you can use this snippet:
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