WPML

Tổng quan về sự cố

Khi sử dụng plugin Bookings for WooCommerce với WPML và WooCommerce Multilingual, sản phẩm đặt chỗ đã dịch không nhận được các cài đặt đặt chỗ của sản phẩm gốc. Trang sản phẩm đã dịch không hiển thị lịch đặt chỗ hay dịch vụ nào, và tổng tiền đặt chỗ là $0,00.

Giải pháp tạm thời

  1. Đi tới WPMLCài đặt và mở tab Cấu hình XML tùy chỉnh.
  2. Thêm mã này và lưu:
    XML
    <wpml-config>
      <custom-fields>
        <custom-field action="copy">mwb_mbfw_booking_criteria</custom-field>
        <custom-field action="copy">wps_mbfw_booking_type</custom-field>
        <custom-field action="copy">mwb_mbfw_booking_count</custom-field>
        <custom-field action="copy">mwb_mbfw_booking_unit</custom-field>
        <custom-field action="copy">mwb_mbfw_enable_calendar</custom-field>
        <custom-field action="copy">mwb_mbfw_enable_time_picker</custom-field>
        <custom-field action="copy">mwb_mbfw_max_bookings</custom-field>
        <custom-field action="copy">mwb_mbfw_show_date_with_time</custom-field>
        <custom-field action="copy">mwb_mbfw_admin_confirmation</custom-field>
        <custom-field action="copy">mwb_mbfw_cancellation_allowed</custom-field>
        <custom-field action="copy">mwb_mbfw_booking_unit_cost</custom-field>
        <custom-field action="copy">mwb_mbfw_booking_base_cost</custom-field>
        <custom-field action="copy">mwb_mbfw_booking_base_cost_hide</custom-field>
        <custom-field action="copy">mwb_mbfw_booking_general_cost_hide</custom-field>
        <custom-field action="copy">mwb_mbfw_show_additional_cost_details</custom-field>
        <custom-field action="copy">mwb_cost_date_range_notice</custom-field>
        <custom-field action="copy">mwb_mbfw_is_people_option</custom-field>
        <custom-field action="copy">mwb_mbfw_minimum_people_per_booking</custom-field>
        <custom-field action="copy">mwb_mbfw_maximum_people_per_booking</custom-field>
        <custom-field action="copy">mwb_mbfw_is_booking_unit_cost_per_people</custom-field>
        <custom-field action="copy">mwb_mbfw_is_booking_base_cost_per_people</custom-field>
        <custom-field action="copy">mwb_mbfw_minimum_no_days_booking</custom-field>
        <custom-field action="copy">mwb_mbfw_maximum_booking_per_unit</custom-field>
        <custom-field action="copy">mwb_mbfw_is_add_extra_services</custom-field>
        <custom-field action="copy">mwb_mbfw_daily_calendar_start_time</custom-field>
        <custom-field action="copy">mwb_mbfw_daily_calendar_end_time</custom-field>
        <custom-field action="copy">mwb_mbfw_choose_holiday</custom-field>
        <custom-field action="copy">mwb_mbfw_booking_time_fromat</custom-field>
        <custom-field action="copy">wps_mbfw_day_and_days_upto_togather_enabled</custom-field>
        <custom-field action="copy">wps_mbfw_night_slots_enabled</custom-field>
        <custom-field action="copy">mwb_mbfw_booking_hide_or_diable_slot</custom-field>
        <custom-field action="copy">wps_mbfw_set_availability</custom-field>
        <custom-field action="copy">wps_mbfw_set_availability_upto</custom-field>
        <custom-field action="copy">wps_mbfw_time_slots</custom-field>
        <custom-field action="copy">mwb_bfwp_order_statuses_to_cancel</custom-field>
        <custom-field action="copy">_dynamic_pricing_enabled</custom-field>
        <custom-field action="copy">_dynamic_pricing_rules</custom-field>
        <custom-field action="copy">_available_days</custom-field>
        <custom-field action="copy">_non_available_days</custom-field>
        <custom-field action="copy">_booking_default_price</custom-field>
      </custom-fields>
      <custom-term-fields>
        <custom-term-field action="copy">mwb_mbfw_service_cost</custom-term-field>
        <custom-term-field action="copy">mwb_mbfw_is_service_optional</custom-term-field>
        <custom-term-field action="copy">mwb_mbfw_is_service_hidden</custom-term-field>
        <custom-term-field action="copy">mwb_mbfw_is_service_has_quantity</custom-term-field>
        <custom-term-field action="copy">mwb_mbfw_service_minimum_quantity</custom-term-field>
        <custom-term-field action="copy">mwb_mbfw_service_maximum_quantity</custom-term-field>
        <custom-term-field action="copy">mwb_mbfw_is_service_cost_multiply_people</custom-term-field>
        <custom-term-field action="copy">mwb_mbfw_is_service_cost_multiply_duration</custom-term-field>
      </custom-term-fields>
    </wpml-config>
  3. Dịch lại các sản phẩm đặt trước của bạn, hoặc cập nhật các bản dịch, để WPML sao chép cài đặt đặt trước.

Tất cả lỗi đã ghi nhận

Cần trợ giúp với vấn đề này?

Đặt một câu hỏi hỗ trợ và chúng tôi sẽ cùng bạn xem xét vấn đề này.