Products VC Random - by jnunoalves - on WordPress WooCommerce support

This topic has 7 replies, 3 voices, and was last updated 9 years ago ago by Brian Johnson

  • Avatar: jnunoalves
    jnunoalves
    Participant
    April 26, 2015 at 15:42

    Hello,

    Is there a way to make the products component (from 8 theme) show products randomly?

    For instance, I want to have 30 featured products and want to show 4 randomly in the home page. As it is at the moment it shows always the same 4.

    If I use the woo commerce shortcode [featured_products per_page="4" columns="4" orderby="rand" order="rand"] it works fine but I lose the title (easy to do with header) and most important I lose the responsiveness (it shows 4 products, vertically one by one, on my smartphone, while it shows 2 in slider format when I use your component).

    Is it possible to add the orderby=”rand” order=”rand” to your code, somehow?

    Tanks in advance

    José

    6 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    April 26, 2015 at 15:46

    Hello,

    Unfortunately there is no such possibility. Sorry.

    Regards,
    Eva Kemp.

    Avatar: jnunoalves
    jnunoalves
    Participant
    April 27, 2015 at 12:11

    Do you have it planned for future releases? The products slider without random or any other sort option is quite limited.

    You can close this one.

    Avatar: jnunoalves
    jnunoalves
    Participant
    April 27, 2015 at 12:23

    In fact I was planning to put a question to Woo Commerce but as they don’t provide support for non paying members … is better to ask you here.

    Is there any way to achieve my final result?

    I would like to have 4 random sales products in the home page:

    [sale_products per_page="4" orderby="rand" order="rand"]

    But I would like to define number of items per display. Is it possible?

    Thanks in advance

    Avatar: Eva
    Eva Kemp
    Support staff
    April 27, 2015 at 12:58

    Hello,

    Please try to use this shortcode [etheme_sale_products per_page="4" orderby="rand" order="rand"].

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: jnunoalves
    jnunoalves
    Participant
    April 27, 2015 at 13:29

    Hello Eva,

    Unfortunately it doesn’t work. I’ve tried to add etheme_ to the shortcodes sales products per page and featured products per page and it didn’t work in both cases.

    Regards,

    José

    Avatar: Brian Johnson
    Brian Johnson
    Member
    April 27, 2015 at 13:39

    Hello

    You may add widgetised sidebar VC element and add widget “woocommerce products” adjusting order in widgets menu.

    With best regards
    Brian Johnson

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

You must be logged in to reply to this topic.Log in/Sign up

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