Products VC Random - by jnunoalves - on WordPress WooCommerce support

6 replies3 participantsUpdated by Brian Johnson

  • Avatar: jnunoalves
    jnunoalves
    Participant

    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
    Participant

    Hello,

    Unfortunately there is no such possibility. Sorry.

    Regards,
    Eva Kemp.

    Avatar: jnunoalves
    jnunoalves
    Participant

    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

    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
    Participant

    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

    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

    Hello

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

    With best regards
    Brian Johnson

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register