Support » Plugin: WPB WooCommerce Product Slider » Slider when only 1 product

  • Resolved bertatmw

    (@bertatmw)


    Hi, we are using your plugin to show an slider with the products from one category and the shortcode looks like this:

    [wpb-product-slider product_type=’category’ category=’19’ loop=’true’ nav=’true’ pagination=’false’ items=’3′ items_desktop_small=’3′ items_tablet=’2′ items_mobile=’1′ show_cart=’false’ show_price=’false’]

    The problem is that when there are less than 3 products in that category, the plugin repeats the same product.

    What am I missing? Is there any way to solve it and that when there are less than 3 items, it doesn’t reply the ones that we have?

    Thanks in advanced.-

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author wpbean

    (@wpbean)

    Hi,

    Maybe it because of the looping the slider items. Slider loop clone the items.

    Please set the shortcode loop parameter to false and test it.

    Example –
    [wpb-product-slider product_type="category" category="19" loop="false" nav="true" pagination="false" items="3′ items_desktop_small="3′ items_tablet="2′ items_mobile="1′ show_cart="false" show_price="false"]

    Hi, yes! Changing loop to false solves the problem.

    It is ok as a temporary solution, but is there a way to have less than 3 items and the loop?

    Thanks.-

    Plugin Author wpbean

    (@wpbean)

    Hi,

    We just released an update for this plugin and in this update, you can set the number of products to disable the slider loop.

    If the slider has less than or equal products the slider loop will be disabled.

    Please update the plugin on your site and set the new parameter on our shortcode. Also, make sure you enable the default slider loop.

    [wpb-product-slider product_type="category" category="19" loop="true" disable_loop_on="3" nav="true" pagination="false" items="3′ items_desktop_small="3′ items_tablet="2′ items_mobile="1′ show_cart="false" show_price="false"]

    Now it’s perfect, thanks!!!

    • This reply was modified 4 months, 2 weeks ago by  bertatmw.
    Plugin Author wpbean

    (@wpbean)

    Good to know it works.
    Please rate this plugin is you like this plugin and our support.
    Huge thanks in advance.

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