Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @mave27,

    Greetings from WebToffee support. Thank you for reach out to us.

    It looks like you want to display related products based on the product’s subcategory. The following code snippet allows you to prioritize recommendations from the subcategory. If there aren’t enough products in the subcategory, it will automatically pull items from the main category as a fallback.

    add_filter('wt_crp_subcategory_only', '__return_true');

    Please copy the code snippet and paste it into your active theme’s function.php file (WordPress Dashboard > Appearance > Theme Editor > functions.php) or you can use a Code Snippet plugin to do that for you.

    Let us know if you’d like further assistance.

    Thread Starter Mave27

    (@mave27)

    Thanks for the prompt response.

    I can confirm the the Code snippet is displaying the correct results.

    Compliments for a incredible plugin to display the ‘Related Products’ !

    Meanwhile, I want to improve the aesthetics of the slider:

    1. Shift the text ‘Related Products’ label to right, so that it is inside the body of the Page. Will a CSS code do the trick ?
    2. Can you explain the significance of the black dots on the top of the slider ? It looks like odd.

    Screenshot: https://prnt.sc/_HddQ4sp3HHI

    Product Page URL:

    https://www.oshwalwholesalers.com/product/ocean-pilsner-hb-40cl-beer-tumbler/

    Meanwhile, I have just noticed an anomaly. Why is the Related Product slider displaying a Grid style instead of Slider ? | https://prnt.sc/NaY503vkUjXs

    Product Page URL:

    https://www.oshwalwholesalers.com/product/tescoma-colander-w-base-grandchef/

    Rgds

    • This reply was modified 1 year ago by Mave27.
    • This reply was modified 1 year ago by Mave27.
    • This reply was modified 1 year ago by Mave27.
    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @mave27,

    Thanks for getting back to us. We’re glad to hear that the provided solution worked for you, and we truly appreciate your feedback on the plugin.

    Regarding your further concerns, the black dots on the top of the slider appear to be caused by a theme conflict. Similarly, the misalignment of the ‘Related Products’ title is also likely due to theme-related issues.

    To address these concerns (hiding the black dots and properly aligning the ‘Related Products’ widget title inside the page body), you may use the following code snippet:

    add_action('wp_footer', function () {
    if (is_product()) {
    ?>
    <script>
    jQuery(document).ready(function ($) {
    $('.related.wt-related-products').addClass('row');
    });
    </script>
    <style>

    @media only screen and (min-width: 1200px) and (max-width: 1660px) {
    .related.products.wt-related-products {
    padding: 0px 30px;
    }
    }
    .wt-related-products .wt-crp-heading {
    padding: 0px 10px;
    }
    .wt-related-products ul.products li.product {
    list-style: none;
    }
    </style>
    <?php
    }
    });

    Regarding the anomaly you mentioned, we were unable to replicate the issue on your site, and the provided page URL currently leads to a “404 Page Not Found” error. Kindly verify the link or provide us with a screen recording of the issue you’re experiencing, along with a working link, so we can replicate it.

    If you have any privacy concerns about sharing these details here, you may securely share them through this support link.

    Kindly try the solutions provided and let us know how it works for you. If you encounter any further issues, feel free to reach out!

    Thread Starter Mave27

    (@mave27)

    Hi

    Thank you for taking a keen interest in my case.

    Unfortunately, the latest code snippet isn’t working, even after flushing the server cache & browser cache.

    Dashboard > Theme File Editor screenshot : https://prnt.sc/8wch6smo00xf

    F/E screenshot : https://prnt.sc/g1K1v4atX24Q | Page URL: https://www.oshwalwholesalers.com/product/tescoma-chopping-board-precioso/

    Also, note the prd colour swatch is not rendering correctly, it’s clashing with the item descn.

    As for the 2nd issue, apologies for sharing the wrong link. I have managed to reproduce the error for another product.

    F/E screenshot : https://prnt.sc/kSZBpULAd4XK | Page URL: https://www.oshwalwholesalers.com/product/tescoma-oil-dispenser-0-5l-grandchef/

    Rgds

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @mave27 ,

    We’re sorry to hear that the code snippet didn’t work as expected. To help us replicate the issue on our end, could you kindly share your theme’s zip file with us? This will allow us to analyze the theme setup and any potential conflicts. You can zip the theme directory and securely share it using this link.

    Regarding the Related Products Slider Issue:
    For the product page Tescoma Oil Dispenser 0.5L – Grandchef, the related product slider is displaying in grid style instead of a slider. Upon reviewing, the category Oil & Vinegar Dispensers has a total of 5 products. However, the slider settings for the desktop view specify 6 products per page. Since there aren’t enough products available to meet this number, the slider defaults to a grid style.

    I hope this provides you with clarity. Looking forward to receiving the requested information to assist you further!

    Thread Starter Mave27

    (@mave27)

    Hi Support.

    Kindly refer to Support Ticket # 77427.

    Good Luck !

    Rgds

    Thread Starter Mave27

    (@mave27)

    Hi Support

    The theme compatibility conflict has been successfully resolved !

    Thanks !!

    • This reply was modified 1 year ago by Mave27.
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Related Products showing from a different Category ?’ is closed to new replies.