• Resolved demonshi

    (@demonshi)


    Your plugin shows carousel related products, up-sells and cross-sells.

    Tell me, how can I the show only up-sells products? And remove the ability to display related products?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Rafik

    (@rafikwp)

    Hello,

    You can only select up-sells products and leave as it is in cross-sells.

    “And remove the ability to display related products?”
    >>I am not getting this point can you please elaborate more.

    Thanks

    Thread Starter demonshi

    (@demonshi)

    In your plugin, on the page of each product, related products and up-sells are shown by default. I need to show only up-sells that I manually add on the product editing page.

    Thanks!

    Plugin Support Rafik

    (@rafikwp)

    Hello,

    Sorry for the inconvenience because this functionality not available as you need.

    but you can customize the plugin, follow this
    Go to /woo-slick-related-product-slider/includes/wpwrps-functions.php
    Edit this file and go to line no 75 and add this line $link_product = $upsells; exact above this line
    // Category Tax Query Parameter

    Now find this code and remove it or comment this code

    `if(!empty($woo_cat_id) && empty($link_product)) {
    $args[‘tax_query’] = array(
    array(
    ‘taxonomy’ => ‘product_cat’,
    ‘field’ => ‘id’,
    ‘terms’ => $woo_cat_id,
    ));
    } `

    • This reply was modified 5 years, 6 months ago by Rafik.
    • This reply was modified 5 years, 6 months ago by Rafik.
    Thread Starter demonshi

    (@demonshi)

    Did as you said. Nothing has changed. Up-sells products are shown, but all related products are also shown, even if I didn’t add them manually.

    Here’s the file itself: https://drive.google.com/file/d/153tOKPDOMtEO3GUlp-9-rHdvekYS0jR/view

    Plugin Support Rafik

    (@rafikwp)

    Hello,

    Please find our site and join live chat our technical team will help you.

    Thanks

    Thread Starter demonshi

    (@demonshi)

    Your chat is not responding. Tell me, did I edit the file correctly?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show up-sells products’ is closed to new replies.