I want the sale countdown to be always on single/list/grid by default .currently its in default.

This topic has 2 replies, 2 voices, and was last updated 2 weeks, 2 days ago ago by Luca Rossi

  • Avatar: ubansal
    ubansal
    Participant
    April 7, 2025 at 14:35

    Hi there,

    Hope you’re doing well!

    I wanted to kindly request if you could help me set the sale countdown to always be visible by default on the Single, List, and Grid views. Currently, it’s set to “Default,” but I’d really appreciate it if it could be made to always show.

    Thanks so much in advance for your help!

    Regards
    Arjun

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Justin
    Luca Rossi
    Support staff
    April 9, 2025 at 08:22

    Dear @ubansal,

    We hope this message finds you well.

    To address the issue, we kindly suggest adding the following custom code to the functions.php file located in your child theme:

    
    add_filter('get_post_metadata', 'n2t_get_post_metadata', 999, 3);
    function n2t_get_post_metadata($value, $post_id, $key) {
        if ($key == '_et_sale_counter') return 'all';
        return $value;
    }
    

    Please note that for existing products, you may need to update them manually to ensure that this setting is properly applied and reflected in the database.

    Should you have any further questions or require assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.