WPML translation
-
Hello,
This is my current code I need help with:
add_filter( 'woocommerce_get_price_html', 'custom_price_suffix', 100, 2 ); function custom_price_suffix( $price, $product ) { if(is_singular('product')) { $price = $price . __(' <span class="make-me-small"> inkl. MwSt. und <a href="https://www.website.com/versand"> zzgl. Versandkosten</a></span>', 'my-text-domain'); } return apply_filters( 'woocommerce_get_price', $price ); }
This is if German is selected.
I want to change this:
$price = $price . __(' <span class="make-me-small"> inkl. MwSt. und <a href="https://www.website.com/versand"> zzgl. Versandkosten</a></span>', 'my-text-domain');
to this:
$price = $price . __(' <span class="make-me-small"> VAT incl. + <a href="https://www.website.com/shipping</a></span>', 'my-text-domain');
if English is selected as language.
How can I do that?
- The topic ‘WPML translation’ is closed to new replies.