For example, I would like only some products to have the wording “coming soon”, but not all sold out products. Here is an example:
https://www.imghippo.com/i/xwTlf1727955504.jpg
The site is visible via the link: https://erbacealab.it/shop/?woo-share=Y2DF3nvwQByOOoSF0pFFbB1H75Y70rXY
since the shop is still in coming soon mode
Thanks,
Valentina
// Change add to cart text on single product page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_add_to_cart_button_text_single' );
function woocommerce_add_to_cart_button_text_single() {
return __( 'Collect', 'woocommerce' );
}
// Change add to cart text on product archives page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_add_to_cart_button_text_archives' );
function woocommerce_add_to_cart_button_text_archives() {
return __( 'Collect', 'woocommerce' );
}
// To change add to cart text on single product page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' );
function woocommerce_custom_single_add_to_cart_text() {
return __( 'Buy Now', 'woocommerce' );
}
// To change add to cart text on product archives(Collection) page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );
function woocommerce_custom_product_add_to_cart_text() {
return __( 'Buy Now', 'woocommerce' );
}
// Change "Add to Cart" > "Add to Bag" in Shop Page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_shop_page_add_to_cart_callback' );
function woocommerce_shop_page_add_to_cart_callback() {
return __( 'Add to Bag', 'text-domain' );
}
// Change "Add to Cart" > "Add to Bag" in Single Page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_single_page_add_to_cart_callback' );
function woocommerce_single_page_add_to_cart_callback() {
return __( 'Add to Bag', 'text-domain' );
}
None of these have any effect.
Theme is TT4
Thx
]]>The “for” text in the Search Results on the results page can’t be altered in the backend settings for the “Results” page options. Here I can alter everything else that I want except for this. The site is in German, and now the “for” is the only text in English on the results page where it states “Zeige Ergebnisse 1 bis 10 von 12 for ‘d’ ” (Show results 1 to 10 of 12 for ‘d’). The “for” text is not wrapped in a span element. Thus, I can’t even hide it with CSS and add an after-pseudo class to add my preferred text “for”. I tested by switching the site’s language from English to German and it didn’t alter the text. Please assist
]]>Is there a way to change the text in the pull down of the Settings icon?
Here is a screenshot to show what I mean
https://i.postimg.cc/nVKR2kLn/20240115-171755.jpg
Thank you,
Yolanda
]]>Is there a way for me to edit the green “order confirmed” text depending on the chosen payment method?
Thanks!
]]>how can i change the language “Read more” in “mehr lesen” ?
Thanks Jackie
]]>