This topic has 13 replies, 4 voices, and was last updated 6 years, 10 months ago ago by Rose Tyler
Hi, I wonder how I can change “Quantity” on top of “Add to the cart” in single product page to “Quantity / Meter”?
Hi,
You can translate those strings using this kb article: https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/
Let us know,
Thanks,
laranz.
Hi, I don’t want to translate theme to other language just because of the purpose of my website I need to have “Quantity / Meter” instead of just “Quantity” for adding products to shopping cart.
I tried the plugin but it seems its not change anything
Hello,
In this case you may edit “Quantity” text in xstore/woocommerce/global/quantity-input.php file.
Please, do all the changes in child theme to avoid problem with next theme update https://www.8theme.com/documentation/docs/child-theme/
Regards
Hi, the file you mentioned “../woocommerce/global/quantity-input.php”, I don’t have it!!
Oh sorry, xstore/framework/woo.php file.
Regards
the other thing that you mentioned to update do all the changes in chid theme, I don’t know how to do it because I only have style.css, function.php and screenshot.png in my themes/xstore-child folder
Yes, please read documentation https://codex.wordpress.org/Child_Themes
you need copy this function http://prntscr.com/ghc2e1 in function.php file of child theme and there make text changes.
Regards
it is change now. Thank you so much for your help.
You’re welcome!
Regards
Sorry, I have the same problem. I tryed to follow your instruction but I must have done something wrong because it didnt work for me. I want to change he text “quantity” to “people”
This is what I wrote:
if ( ! function_exists( ‘etheme_single_quantity_text’ ) ) {
function etheme_single_quantity_text() {
global $product;
if ( !$product->is_type( ‘grouped’ ) ) printf( ‘<span class=”qty-span”>’ esc_html_( ‘people’, ”xtore’ ) );
}
}
Im sorry for not understanding. I hope you can help me.
Hello, @lemc1414
To avoid editing of php files I would recommend using translation files to change it. Use Loco Translate plugin https://www.8theme.com/demo/docs/xstore/#translation , create English translation and just change necessary strings to what you need.
Regards
You must be logged in to reply to this topic.Log in/Sign up