Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author WeblineIndia

    (@weblineindia)

    Hello @thetankgirl ,

    Thank you for using our plugin!
    It appears that your settings are correct; however, there are a few potential issues that could be causing the display problem:

    1. Custom Sticker Position: Please check the position of the custom sticker on the product details page. It may be present on the page but could be hidden behind the product image overlay.
    2. Theme Conflict: There might be a conflict between your theme and the plugin code.
    3. z-index CSS Property: The issue could also be related to the z-index CSS property in your theme, causing the sticker to be hidden or layered incorrectly.

    To help, you can refer to the following screenshots that demonstrate a similar setup to the one you have applied:

    1. Custom Sticker configuration screenshot: https://prnt.sc/urrFf34NKoqv?
    2. Product on Sale configuration screenshot: https://prnt.sc/ygOTK-vA9Bdu?
    3. Product Listing page display screenshot: https://prnt.sc/Z4aQyqe6UHdc?
    4. Product details page display screenshot: https://prnt.sc/e9vz70f7zu1m

    I hope this information helps you resolve the issue. If you’re still experiencing problems, please feel free to share your website URL so?we can investigate further.

    Thanks!

    Thread Starter thetankgirl

    (@thetankgirl)

    Well somehow I can not even see the custom badge in the source of my page. Already also tried playing it in my staging area but no luck so far. switching places just shows the sale ribbon on the left and nothing on the right.
    https://www.bakgoed.nl/koopjeshoek/
    Here you can see it in action ?? I am using 8theme xstore theme.

    Thread Starter thetankgirl

    (@thetankgirl)

    Ah, when I edit the class-woo-stickers-by-webline.php directly and do this

        $this->loader->add_action('etheme_before_single_product_image', $plugin_public, 'show_product_cust_badge', 2 );

    It shows! Is there a way I can do this in my functions.php?

    Plugin Author WeblineIndia

    (@weblineindia)

    It appears that the issue could be related to a compatibility problem with the theme you’re using. A custom solution may be required in this case.

    Please provide detailed information through this link: https://www.weblineindia.com/contact-us.html, so our development team can investigate further and coordinate with you.

    Thread Starter thetankgirl

    (@thetankgirl)

    Will this cost me anything?

    Plugin Author WeblineIndia

    (@weblineindia)

    Hi @thetankgirl ,

    We’re happy to offer you a custom solution with the code provided below. We assume you’ve already set up the child theme for 8theme XStore. To display the badge, simply add the following code to your child theme’s functions.php file:

    function get_product_badge_html() {
    // Ensure this is correct path of the plugin file
    $plugin_dir = WP_PLUGIN_DIR . '/woo-stickers-by-webline/public/class-woo-stickers-by-webline-public.php';
    // Check if the plugin's class file exists before requiring it
    if (file_exists($plugin_dir)) {
    // Include the plugin's public class file
    require_once $plugin_dir;

    // Instantiate the plugin's main class and its public class
    $woo_stickers = new Woo_Stickers_By_Webline();
    $plugin_public = new Woo_Stickers_By_Webline_Public($woo_stickers->get_plugin_name(), $woo_stickers->get_version());
    // Get the current product ID
    $product_id = get_the_ID();
    // Check if the method 'show_product_cust_badge' exists in the public class
    if (method_exists($plugin_public, 'show_product_cust_badge')) {
    // Start output buffering
    ob_start();
    // Call the method to display the product badge
    $plugin_public->show_product_cust_badge($product_id);
    // Get the buffered output and clean the buffer
    $output = ob_get_clean();
    // Output the badge HTML
    echo $output;
    } else {
    // Output a message if the method does not exist
    echo 'Method show_product_cust_badge does not exist.';
    }
    } else {
    // Output a message if the plugin file is not found
    echo 'Plugin file not found.';
    }
    }
    // Hook the function to 'etheme_before_single_product_image' action
    add_action('etheme_before_single_product_image', 'get_product_badge_html');

    Please let us know if you still have any query. Kindly message us here if it works.

    Thread Starter thetankgirl

    (@thetankgirl)

    Yes! Thank you!!

    Plugin Author WeblineIndia

    (@weblineindia)

    Thanks and happy to see that we were able to help you resolve issue. Would you mind if we request you to write us a 5* review for our plugin, that will motivate our team to continue developing and upgrading our plugins.

    Thread Starter thetankgirl

    (@thetankgirl)

    Did the review ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.