Hilangkan Unique Code di halaman Cart
Updated on November 5, 2018 in Woo Ongkir
Premium  1 on November 3, 2018

Halo.

Di settingan plugin saya aktifkan ‘unique code’.

Unique code ada muncul di halaman cart dan checkout.

Namun apakah ada snippet ke function.php supaya unique code HANYA MUNCUL di halaman checkout, dan TIDAK MUNCUL di halaman cart?

Terima kasih.

  • Liked by
By using the forum you are agree with tonjoo studio license agreement
Moderator 0 on November 5, 2018

Halo,
Coba masukkan kode ini ke dalam functions.php di theme yang sedang aktif.

function hide_unique_on_cart( $class ) {
if ( is_cart() ) {
remove_action( ‘woocommerce_cart_calculate_fees’, array( $class, ‘add_custom_fee’ ) );
}
}
add_action( ‘pok_hooks_addresses’, ‘hide_unique_on_cart’ );

Jika tidak berhasil, maka memang angka unik di halaman cart tidak bisa dihilangkan.
Terima kasih

  • Liked by
Cancel
By using the forum you are agree with tonjoo studio license agreement
Message :
Loading more replies
You are not logged in

Please login here or simply sign up here .