문제 개요
WPML과 함께 YITH WooCommerce Badge Management Premium을 사용할 때 다음과 같은 문제가 발생할 수 있습니다. 번역된 배지에서 유형, 색상 및 위치와 같은 설정이 손실됩니다. WPML이 이를 복사하지 않으므로 번역된 배지가 비활성화됩니다. 이 배지를 사용하는 번역된 상품에는 배지가 표시되지 않습니다.
임시 해결 방법
WPML이 배지 설정을 번역된 배지에 복사하도록 설정하세요:
- WPML설정으로 이동하여 사용자 정의 XML 구성 탭을 여세요.
- 아래의 코드를 붙여넣고 저장을 클릭하세요.
- WPML이 번역을 업데이트하도록 원본 배지와 상품을 업데이트하세요.
XML
<wpml-config> <custom-fields> <custom-field action="copy">_yith_wcbm_badge_from_date</custom-field> <custom-field action="copy" type="post-ids">_yith_wcbm_badge_ids</custom-field> <custom-field action="copy">_yith_wcbm_badge_schedule</custom-field> <custom-field action="copy">_yith_wcbm_badge_to_date</custom-field> <custom-field action="translate">_text</custom-field> <custom-field action="copy">_enabled</custom-field> <custom-field action="copy">_type</custom-field> <custom-field action="copy">_image</custom-field> <custom-field action="copy">_background_color</custom-field> <custom-field action="copy">_size</custom-field> <custom-field action="copy">_padding</custom-field> <custom-field action="copy">_border_radius</custom-field> <custom-field action="copy">_position</custom-field> <custom-field action="copy">_alignment</custom-field> </custom-fields> </wpml-config>