CUSTOMER
Merubah Tulisan Billing Di Menu checkout
Merubah Tulisan Billing Di Menu checkout

Pilih Menu Appearance pada WordPress, lalu pilih Theme File Editor

Pilih functions.php

Copy scrip di ini taruh paling bawah functions.php

Copy Scrip Program

/**

  • Snippet Name: WooCommerce Change "Billing & Shipping" Heading On Checkout Page
  • Snippet Author: ecommercehints.com
    */

add_filter( 'gettext', 'ecommercehints_change_billing_shipping_heading', 10, 3 );

function ecommercehints_change_billing_shipping_heading( $translated, $untranslated, $domain ) {
if ( !is_admin() && $domain === "woocommerce" ) {
if ( $translated == 'Billing details' ) { // The exact text to replace (the existing heading)
$translated = 'Detail alamat'; // The new text
}
}
return $translated;
}

add_filter( 'gettext', 'ecommercehints_change_your_order_heading', 10, 3 );

function ecommercehints_change_your_order_heading( $translated, $untranslated, $domain ) {
if ( !is_admin() && $domain === "woocommerce" ) {
if ( $translated == 'Your order' ) { // The exact text to replace (the existing heading)
$translated = 'Pesananmu'; // The new text
}
}
return $translated;
}

add_filter( 'gettext', 'ecommercehints_change_deliver_to_a_different_address_heading', 10, 3 );

function ecommercehints_change_deliver_to_a_different_address_heading( $translated, $untranslated, $domain ) {
if ( !is_admin() && $domain === "woocommerce" ) {
if ( $translated == 'Deliver to a different address' ) { // The exact text to replace (the existing heading)
$translated = 'Kirim ke alamat lain'; // The new text
}
}
return $translated;
}

add_filter( 'gettext', 'ecommercehints_change_additional_information_heading', 10, 3 );

function ecommercehints_change_additional_information_heading( $translated, $untranslated, $domain ) {
if ( !is_admin() && $domain === "woocommerce" ) {
if ( $translated == 'Additional information' ) { // The exact text to replace (the existing heading)
$translated = 'Tambahan lain'; // The new text
}
}
return $translated;
}

idhosting
Website
Hosting
Domain
Cart
0