This topic has 17 replies, 3 voices, and was last updated 1 years, 4 months ago ago by Tony Rodriguez
How do i change out-of-stock to sold out in product badges?
I unregistered and want to reregister on the same domain.
Hello, Nightcrawler,
Thank you for contacting us and for using XStore.
1/ “Out of stock” text comes from WooCommerce plugin. You can contact WC support to get assistance with it, or use translation files to change the text: install Loco translate plugin, go to Loco translate > plugins > woocommerce > edit English translation > Save changes, then you can disable the Loco plugin. For example – http://prntscr.com/qma5vl > http://prntscr.com/qma5zj
Kind Regards,
8theme team
https://www.8theme.com/topic/out-of-stock-label-change-to-sold-out
not able to do this for the license key
Hello, Nightcrawler,
Have you tried to deregister via your account on our site https://prnt.sc/DTLftJSvry6I ?
Kind Regards,
8theme team
Yes, I did, and it did not work.
Also i already have English language as the default. how do i change that to show sold out
Hello, Nightcrawler,
1/ You can activate XStore now.
2/ Please follow next steps:
1/ Install Loco translate plugin,
2/ go to Loco translate > plugins > woocommerce
3/ edit English translation > find and change text https://prnt.sc/qma5vl
4/ Save changes and check the result
5/ disable Loco plugin.
Or provide temporary wp-admin access, and we will help you.
Kind Regards,
8theme team
Apologies I may be doing something wrong I am still seeing the same.
https://prnt.sc/7g1gQhar71r8
The same i saved the po file cleared the cache not able to get it to change
Hello, Nightcrawler,
Thank you for your response.
It can be a cache problem. Please try clear all cache or temporarily disabling cache plugins and CDN, and check the result then.
Kind Regards,
8theme team
Done it but it does not change. Cleared Cache disabled those plugins
Is there any way to change it using the child theme?
Is there a more permanent way to solve this problem? as loco translate gives a notice”Notice: Changes to this file may be overwritten or deleted when you update WordPress”
I tried everything in loco translate to change woocommerce, and Xstore core translate cannot be changed to sold out.
Hello, Nightcrawler,
We apologize for the delay in responding.
By default, the “OUT OF STOCK” text on the Shop page comes from WooCommerce plugin. If the translation for it doesn’t work, it can be affected by a 3rd party plugin or custom code on your site. Please check it by yourself, because we can’t do this with the access you provided, or contact support of WooCommerce – https://wordpress.org/support/plugin/woocommerce/
The current situation is independent of the theme.
If you have any other questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.
Kind Regards,
8theme team
Hi Rose,
If i add this snippet below, it gets changed to sold out, but the badge does not work. And the badge is a theme function as per woocommerce. I have provided you with admin access; There is no more elevated access than that. there are no third-party plugins dealing with woocommerce. please guide my next course of action
add_filter(‘woocommerce_get_availability_text’, ‘themeprefix_change_soldout’, 10, 2 );
/**
* Change Sold Out Text to Something Else
*/
function themeprefix_change_soldout ( $text, $product) {
if ( !$product->is_in_stock() ) {
$text = ‘
‘;
}
return $text;
}
Hello, Nightcrawler,
With the access you provided, we can’t edit child theme files.
Please try the next code (functions.php):
add_filter( 'gettext', 'etheme_out_of_stock_translate_text', 10, 3 );
function etheme_out_of_stock_translate_text( $translated_text, $untranslated_text, $domain ) {
if ( 'Out of stock' === $translated_text ) {
return 'Sold out';
}
return $translated_text;
}
If this doesn’t help, please provide FTP access (FTP host, FTP username, FTP password, FTP port, FTP encryption). To create FTP access, please contact your hosting provider for assistance.
Kind Regards,
8theme team
It worked after adding the snippet and apologies for the temporary access problem
Hello, @nightcrawler,
We are delighted to have you here. If you are satisfied with our Theme and Customer and Technical Support, we would greatly appreciate it if you could leave a 5-star rating for us on ThemeForest at the following link: http://themeforest.net/downloads. Doing so would help us to continue to provide updates and dedicated support in the future.
Thank you for your time and we hope you have a wonderful day.
Sincerely,
8Theme’s Team
Tagged: label change, out of stock, sold out, templates, woocommerce, wordpress
The issue related to '‘“OUT OF STOCK” LABEL change to “Sold Out”’' has been successfully resolved, and the topic is now closed for further responses