Title: Bug fix
Last modified: December 14, 2022

---

# Bug fix

 *  Resolved [nexau](https://wordpress.org/support/users/nexau/)
 * (@nexau)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/bug-fix-17/)
 * In the file “class-wwp-wholesale-prices.php” replace line 669.
 * `<span class="wholesale_price_title">' . $wholesale_price_title_text . '</span
   >`
 * Replace with this:
 * `<span class="wholesale_price_title">' . __('Wholesale Price:', 'woocommerce-
   wholesale-prices') . '</span>`
 * After that the line translation will start to work properly.
    P.S. I haven’t 
   looked elsewhere, but I think there will be the same problem.

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

 *  Plugin Author [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * (@jkohlbach)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/bug-fix-17/#post-16290500)
 * Hi [@nexau](https://wordpress.org/support/users/nexau/) thanks for the message!
 * This text is actually changeable in the backend settings which is why it’s a 
   variable.
 * If you’re using a system like WPML you can translate that setting as well.
 * Hope this helps!
 *  Thread Starter [nexau](https://wordpress.org/support/users/nexau/)
 * (@nexau)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/bug-fix-17/#post-16292598)
 * Yeah, I see. I understood why it works through a variable. And no I do not use
   WPML for translations, I like the implementation on multisites. And I’ve also
   done translations for some languages locally using Gettext. That’s why this problem
   arose…
 *  Plugin Author [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * (@jkohlbach)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/bug-fix-17/#post-16294484)
 * [@nexau](https://wordpress.org/support/users/nexau/) if it helps, there’s also
   a filter available on that variable when it’s declared higher up in that function(
   and it’s also using gettext function), line 511 in the same file:
 * $wholesale_price_title_text = trim(apply_filters(‘wwp_filter_wholesale_price_title_text’,
   __(‘Wholesale Price:’, ‘woocommerce-wholesale-prices’)));
 * Hope this helps!

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

The topic ‘Bug fix’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-wholesale-prices/assets/icon-256x256.jpg?rev
   =2547870)
 * [Wholesale Suite – B2B, Dynamic Pricing & WooCommerce Wholesale Prices](https://wordpress.org/plugins/woocommerce-wholesale-prices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-wholesale-prices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-wholesale-prices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-wholesale-prices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-wholesale-prices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-wholesale-prices/reviews/)

## Tags

 * [bug fix](https://wordpress.org/support/topic-tag/bug-fix/)

 * 3 replies
 * 2 participants
 * Last reply from: [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/bug-fix-17/#post-16294484)
 * Status: resolved