Bought purchased together is displayed when out of stock

This topic has 10 replies, 4 voices, and was last updated 1 month, 3 weeks ago ago by Andrew Mitchell

  • Avatar: lew-shop
    lew-shop
    Participant
    November 29, 2023 at 22:44

    Hi, how can I make the “bought together” section not appear when an additional product from the set is not available?

    9 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    November 30, 2023 at 08:24

    Hello, @lew-shop,

    Thank you for reaching out to us.

    To assist you more effectively, we kindly request that you provide the URL of the product in question. Additionally, for a thorough examination, please supply your WordPress Admin and FTP login credentials. You may securely submit these details in the private content section of this support thread.

    Please provide the following information:

    WordPress Admin URL:
    WordPress Admin Username:
    WordPress Admin Password:

    FTP Host:
    FTP Username:
    FTP Password:
    FTP Port:

    Your cooperation is greatly appreciated, and we assure you that your information will be handled with the utmost confidentiality. Once we have these details, we will promptly investigate the issue and work towards a resolution.

    Best regards,
    The 8Theme Team

    Avatar: lew-shop
    lew-shop
    Participant
    December 1, 2023 at 16:11

    private

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 1, 2023 at 16:27

    Hello, @lew-shop,

    Thank you for your response.

    There is no such option, right now, unfortunately. Please post a request to our dev team via the form on this page – https://www.8theme.com/taskboard/

    You can add more products here – https://prnt.sc/XgITIwlDiEP9
    or use custom CSS code (Theme Options > Theme custom CSS):

    .postid-17490 .bought-together-products-wrapper {
        display: none;
    }

    where .postid-17490 is https://prnt.sc/m93xSLbWapMV

    We hope this information is helpful.

    Kind Regards,
    8theme team

    Avatar: lew-shop
    lew-shop
    Participant
    December 1, 2023 at 20:46

    This should be standard in this section. I have 4k products and it’s hard to control each one.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 2, 2023 at 09:56

    Hello, @lew-shop,

    Thank you for your response.

    Our customers did not ask about this early, so there is no ready solution, unfortunately. Please post your request on this page https://www.8theme.com/taskboard/ , our dev team will read it, and other customers will be able to vote for this improvement.
    If it receives enough votes from other customers, our development team will consider adding it in one of the upcoming updates.

    You set products here – https://prnt.sc/XgITIwlDiEP9 for every product individually, in any case, and you can select what product to show, or unselect products.

    Another option is not to use our feature but to use an additional plugin for this (please note that we can’t be responsible for the work of 3rd party plugins).

    The customization you seek is beyond the scope of our standard support services. We invite you to utilize our dedicated customization panel for tailored assistance. A skilled team, which includes experienced designers and developers, is available to provide you with the necessary support. You can access customization services at https://www.8theme.com/account/#etheme_customization_panel
    Should you wish to provide additional details or specific requirements, the dev team is ready to assist you. They will guide you through the process to ensure a bespoke solution that meets your unique needs.

    Hope for your understanding.

    Kind Regards,
    8theme team

    Avatar: lew-shop
    lew-shop
    Participant
    December 2, 2023 at 14:15

    I corrected your script and now it works as I expected. I hope you will add this to your theme in the future.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 4, 2023 at 08:25

    Hello, @lew-shop,

    Thank you for your response.

    Please post it here also – https://www.8theme.com/taskboard/ , so our dev team read your request and solution.

    Thank you for your cooperation.

    Kind Regards,
    8theme team

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 4, 2023 at 14:18

    Hello, @lew-shop,

    Answer from our devs:
    “Thanks for sharing the idea of fixing the bug!
    We checked the code and will implement the fix in the next theme update.
    Also, we used another way of checking out-of-stock products
    instead of

    $all_products_out_of_stock = true;
    foreach ($et_bought_together_ids as $prod_id) {
        $product = wc_get_product($prod_id);
        if ($product && 'outofstock' !== $product->get_stock_status()) {
            $all_products_out_of_stock = false;
            break;
        }
    }
    // Przerwij działanie, jeśli wszystkie produkty są niedostępne
    if ($all_products_out_of_stock) {
        return;
    }

    We made it more simply:

    $in_stock_products = array_filter( array_map( 'wc_get_product', $et_bought_together_ids ), function ($local_product) {
        return $local_product && $local_product->is_in_stock();
    } );
    if ( !count($in_stock_products) ) return;

    Kind Regards,
    8theme team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    January 7, 2024 at 15:49

    Dear lew-shop,

    As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?

    Click here to share your valuable perspective: https://themeforest.net/downloads

    Your time and trust are highly appreciated!

    Best Regards,
    The 8Theme Team

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

The issue related to '‘bought purchased together is displayed when out of stock’' has been successfully resolved, and the topic is now closed for further responses

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