Bỏ qua điều hướng

Waiting for author

Topic Tags: Compatibility

Overview of the issue

If you are using The Events Calendar with the Event Tickets plugin, you may find that payment gateways are not displayed on the checkout page of secondary languages.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open your theme’s functions.php file.
  • Add the following code:
    /**
     * Translate page ID for WPML.
     * 
     * @link wpmlsupp-11347
     * @param mixed $page_id 
     * @return mixed 
     */
    function wpmlsupp_11347_translate_page_id( $page_id ) {
    	return apply_filters( 'wpml_object_id', $page_id, 'page', true );
    }
    add_filter('tec_tickets_commerce_checkout_page_id', 'wpmlsupp_11347_translate_page_id');
    add_filter('tec_tickets_commerce_success_page_id', 'wpmlsupp_11347_translate_page_id');
    

2 phản hồi đẾN “The Events Calendar - Event Tickets : Payment Gateway Not Available on Translated Checkout Page”

Để lại câu trả lời

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

Bạn có thể sử dụng các thẻ này:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>