• Resolved garimagarg

    (@garimagarg)


    ” I am trying to show my own custom element (countdown timer or counter bar) on grid page using this code. But it seems you have modified the native WooCommerce templates. Can you modify below code such that I am able to get my custom element working.

    add_action(‘woocommerce_after_shop_loop_item’, ‘wcct_shop_loop_timer_display’, 5);
    if (!function_exists(‘wcct_shop_loop_timer_display’)) {
    function wcct_shop_loop_timer_display() {
    echo do_shortcode(‘[finale_countdown_timer skip_rules=”no”]’);
    }
    }

    Thanks for your help.”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author XLPlugins

    (@xlplugins)

    Hello @garimagarg,

    Sure, happy to assist you with this.

    Please use this code to display the countdown timer. The only quotes you used in your snippet is wrong. The rest all is good as expected.

    add_action(‘woocommerce_after_shop_loop_item’, ‘wcct_shop_loop_timer_display’, 5);
    if (!function_exists(‘wcct_shop_loop_timer_display’)) {
    function wcct_shop_loop_timer_display() {
    echo do_shortcode(‘[finale_countdown_timer skip_rules=”no”]’);
    }
    }

    Let us know if anything else.

    Plugin Author XLPlugins

    (@xlplugins)

    Hello @garimagarg,

    I hope the given solution work for you and the issue is resolved.

    We are marking this thread solved for now.

    Let us know if anything else.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode not working’ is closed to new replies.