Translate string from code snippet
-
Hi,
I am using both Polylang and Polylang for wooCommerce, I created a code snippet to add the word “Quantity” before the product quantity field in Woocommerce Single Product page. I would like for it to translate when switching languages in the shop. Below is the code snippet:add_action( ‘woocommerce_before_add_to_cart_quantity’, ‘bbloomer_echo_qty_front_add_cart’ );
function bbloomer_echo_qty_front_add_cart() {
echo ‘<div class=”qty”>Quantity: </div>’;
}Is it possible to translate this in Polylang string translations? How would I do that?
Thank you in advance!
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Translate string from code snippet’ is closed to new replies.