Etheme_products shortcode – question / suggestion regarding ''order by''

This topic has 5 replies, 3 voices, and was last updated 9 years ago ago by Eva Kemp

  • Avatar: sorin.manica
    sorin.manica
    Participant
    March 31, 2015 at 12:30

    Hello!

    I see in the theme documentation for the etheme_products shortcode the following:

    “[etheme_products title=” ” ids=”” skus=”” type=” ” products=” ” limit=” ” columns=” ” categories=”” desktop=”” notebook=”” tablet=”” phones=””] displays products. Depending on attributes displays products as slider or grid. Awailable attributes: title — title for products;
    ids — display products by id;
    skus — display products by sku;
    type — set type of products view (allowed values: grid, slider);
    products — specify what products you want to display (allowed values: featured, new, sale, bestsellings);
    columns — controls how many columns wide the products should be before wrapping (allowed values:3, 4, 5). For grid type only!
    limit — sets products quantity;
    categories — displays products from specific category by category id.
    desktop — sets products quantity per row in the slider for desktop version For slider type only!;
    notebook — sets products quantity per row in the slider for notebook. For slider type only!
    tablet — sets products quantity per row in the slider for tablet. For slider type only!;
    phones — sets products quantity per row in the slider for phones. For slider type only!.”

    I see it’s very similar to the wordpress gallery shortcode, however I cannot order the products in various manners (by ID, DESC, ASC etc). How can I do that? If it’s not already present in the theme code, can you please implement it in the future?

    It’s very important for campaing pages, the same products may be part of different promotional campaigns, and I really need to have them in a different order on the page.

    Thanks 🙂

    4 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    March 31, 2015 at 13:24

    Hello,

    You can try to use this shortcode [etheme_products title=" " ids="" skus="" type=" " products=" " orderby="date" order="desc"]

    Regards,
    Eva Kemp.

    Avatar: Royalty
    Royalty
    Participant
    April 17, 2015 at 21:28

    Same problem here. My code is
    [etheme_products type="slider" style="default" categories="51,27"]
    and I want that category 51 comes first and is followed by category 27. But it mixes the products. I tried to change my code to
    [etheme_products type="slider" style="default" categories="51,27" orderby="title" order="desc"] but no change. Any idea how to define the order? Please note that my site is still on localhost…
    Many thanks in advance!

    Avatar: Royalty
    Royalty
    Participant
    April 17, 2015 at 21:45

    Just found this post from ocotber 2014 where you wrote that this is not possible and requires additional customization:
    https://www.8theme.com/topic/woocommerce-products-grid-from-vc-does-not-honor-menu_order-sort/
    Could you please help us (and other interested person) with this issue?
    Any help would be very appreciated!

    Avatar: Eva
    Eva Kemp
    Support staff
    April 18, 2015 at 08:09

    Hello @Royal Fan,

    Please take our apologies but our developers are currently unavailable and won’t be able to assist on additional customization due to a lot amount of work related to the themes updates.
    Sorry.

    Regards,
    Eva Kemp.

  • Viewing 5 results - 1 through 5 (of 5 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.