Viewing 4 replies - 1 through 4 (of 4 total)
  • sangeethasrinivasan

    (@sangeethasrinivasan)

    Hello,

    Thank you for contacting us and providing detailed screenshots. We have an event that enables you to manually load the discount bar through code.

    To display the discount bar where you want it to be, you can use the following event:

    /* *Please make sure we are passing the param $product -> Product object. */do_action('advanced_woo_discount_rules_load_discount_bar', $product);

    You can ask your developers for assistance on how to utilize this event to load the discount bar on your site.

    If you encounter any difficulties, please create a support ticket using this link -> https://www.flycart.org/support, and include screenshots of your site URL and the rule setup. Our support engineers will quickly provide you with possible solutions.

    Thank you for choosing Flycart, and we look forward to hearing from you.

    Best regards,

    The Flycart Team

    Thread Starter dk9

    (@dk9)

    Thanks for your quick support.

    We are using Flatsome theme, which is the most sold on Themeforest. Before it was working perfect.

    Should we add this code in the functions.php?

    Thread Starter dk9

    (@dk9)

    I added this to my functions.php and still, it doesn’t work:

    add_action(‘woocommerce_before_single_product’, ‘load_discount_bar’);

    function load_discount_bar() {
    global $product;
    do_action(‘advanced_woo_discount_rules_load_discount_bar’, $product);
    }

    sangeethasrinivasan

    (@sangeethasrinivasan)

    Hi,

    Thanks for giving it a try.

    In order to provide you with the best possible solutions further, we suggest that you create a support ticket using the following link: https://www.flycart.org/support. Please make sure to include screenshots of your site URL and the rule setup.

    One of our support engineers will review your ticket and get back to you with solutions as quickly as possible. We appreciate your patience in this matter and look forward to hearing from you.

    Thank you,

    Team Flycart

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Discount bar is not showing’ is closed to new replies.