WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Multilingual - run WooCommerce with WPML
Add filter for checkout page ID (2 posts)

  1. GeertDD
    Member
    Posted 2 years ago #

    A filter for the checkout page ID should be added. I think this was simply forgotten. Here is the code:

    add_filter('woocommerce_get_checkout_page_id', 'wpml_checkout_page_id');
    
    function wpml_checkout_page_id(){
    	return icl_object_id(get_option('woocommerce_checkout_page_id'), 'page', true);
    }

    Thank you!

    http://wordpress.org/extend/plugins/woocommerce-multilingual/

  2. Dominykas
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi GeertDD,

    In the WCML 1.0 version this filter removing was intentional, because it caused some problems when cart and pay pages was in question. We have another one filter for the checkout page called 'woocommerce_get_checkout_url', so it has to work the checkout page OK. Anyway, we have released WooCommerce Multilingual 1.1 beta version it includes a lot of bug fixes (also this filter is added).

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic