Checkout fr Woocommerce - load default WooCommerce checkout template on the fly

I have this scenario:By default, checkout page is handled by Checkout for WooCommerce plugin, but I need to prevent plu

I have this scenario: By default, checkout page is handled by Checkout for WooCommerce plugin, but I need to prevent plugin's template from loading, and load default WooCommerce checkout template if a certain $_GET parameter is provided.

I'm looking in plugin's filters and hooks but can't really find anything helpful.

Can anyone help with a hint please?

I have this scenario: By default, checkout page is handled by Checkout for WooCommerce plugin, but I need to prevent plugin's template from loading, and load default WooCommerce checkout template if a certain $_GET parameter is provided.

I'm looking in plugin's filters and hooks but can't really find anything helpful.

Can anyone help with a hint please?

Share Improve this question asked Mar 11, 2020 at 12:16 Nicolae CojocaruNicolae Cojocaru 1
Add a comment  | 

1 Answer 1

Reset to default 0

Problem solved, found an undocumented hook - cfw_load_checkout_template

Example usage:

add_action('cfw_load_checkout_template', 'sd_handle_cfw_should_load');

    function sd_handle_cfw_should_load($value)
    {
        if(isset($_GET['sdc_modal'])) {
            return false;
        }

        return $value;
    }

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744679498a4587531.html

相关推荐

  • Checkout fr Woocommerce - load default WooCommerce checkout template on the fly

    I have this scenario:By default, checkout page is handled by Checkout for WooCommerce plugin, but I need to prevent plu

    1天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信