programing

Woocommerce 플러그인에서 "Ship to a Different Address?" 확인란 숨기기 또는 삭제

sourcejob 2023. 2. 12. 10:25
반응형

Woocommerce 플러그인에서 "Ship to a Different Address?" 확인란 숨기기 또는 삭제

Wordpress의 Woocommerce 체크아웃 페이지에서 "Ship to another address?" 체크박스를 숨기거나 삭제할 수 있는 솔루션을 찾고 있지만 아직까지는 방법을 찾지 못했습니다.어떻게 할 수 있을까요?

근데 저는 사히파 테마를 쓰고 있어요.

어떤 도움이라도 대단히 감사합니다.

배송 섹션과 함께 이 체크박스를 삭제할 수 있는 옵션이 있습니다.에 가다

관리 -> Woocommerce -> 설정 -> 배송 -> 배송 옵션

찾아내다Shipping Destination, 및 다음 사항을 확인합니다.Force shipping to the customer billing address체크박스가 켜져 있습니다.

코드를 사용하여 제거하려는 경우 이 필터를 기능에 추가하면 됩니다.php

add_filter( 'woocommerce_cart_needs_shipping_address', '__return_false');

이게 도움이 됐으면 좋겠다.

이 코드를 에 추가하기만 하면functions.php파일

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );

언급URL : https://stackoverflow.com/questions/40743883/hiding-or-deleting-the-ship-to-a-different-address-checkbox-in-woocommerce-pl

반응형