- 상태
- 개발자 대기 중
- 주제 태그
- Compatibility
문제 개요
인보이스 생성 시 WooCommerce PDF Invoices by Andrew Benbow를 사용하면, PDF에 약관 페이지가 항상 기본 언어로 표시됩니다. 또한 약관 페이지에 대한 언어별 설정을 저장할 수 없어 올바르게 번역할 수 없습니다.
임시 해결 방법
진행하기 전에 사이트의 전체 사이트 백업을 완료했는지 확인하세요.
- …/wp-content/plugins/woocommerce-pdf-invoice/classes/class-pdf-send-pdf-class.php 파일을 여세요.
- 183번째 줄을 찾으세요.
- 다음을:
// Get the WooCommerce order_id $order_id = $order->get_id();
- 다음으로 교체하세요:
// Get the WooCommerce order_id $order_id = $order->get_id(); // WPML workaround for compsupp-7811 $order_lang = $order->get_meta( 'wpml_language', true ); $settings['pdf_termsid'] = apply_filters( 'wpml_object_id', $settings['pdf_termsid'], 'page', TRUE, $order_lang );