"8theme products" element default parameters

This topic has 6 replies, 3 voices, and was last updated 7 years, 4 months ago ago by Olga Barlow

  • Avatar: poldacchio
    poldacchio
    Participant
    July 21, 2017 at 00:35

    Hi all

    I need a big help to solve a problem…
    I have a website with about 250 products and I’ve used a lot the “8theme products” element (at least 1 time for each product) from Visual Composer. At first my customers didn’t tell me to give an order to the products loaded by the element (“it’s not important…” they said…) so I didn’t set any parameters in the “order by” and “order way” fields, they are empty at the moment (no parameters are set so, I think, the module loads the default options).
    Today my customers asked me to sort all the products by date because “it’s very important” for them… so… is there a way to set the “order by” and “order way” parameters to “Date” and “Descending” as default for the “8theme products” element? It could let me save a lot of time (otherwise the only thing I can do is to open 250 products and set the parameters one by one… it could kill me!).
    Thanks a lot for the help!

    5 Answers
    Avatar: amzy
    Amzy Leel
    Participant
    July 21, 2017 at 05:14

    Hi,

    yes of course you have an option to sort by date: http://prntscr.com/fyctym and ‘Order Way’ for descending or ascending

    Avatar: poldacchio
    poldacchio
    Participant
    July 21, 2017 at 08:55

    Hi!
    I know that I can sort the products in that way, but it means that I have to open every product page (250 atm.) and modify the parameters in the “8theme products” element everytime I’ve used it… what I want to know is if it’s possible to set the “order by” parameter to “date” and the “order way” to “Descending” AS DEFAULT for that module, maybe with a code in the functions.php file? Or by adding/modifying some row of code in the Visual composer plugin files?
    At the moment I didn’t set these parameters and left the fields “empty”, so I think that the system loads the default options, what I taught is “if I change the default options I can update every 250 product in 1 shot!”, isn’t it right?

    Thanks a lot!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 21, 2017 at 14:58

    Hello,

    You need to edit
    xstore/framework/shortcodes/products.php and
    http://prntscr.com/fyj40c

    Regards

    Avatar: poldacchio
    poldacchio
    Participant
    July 21, 2017 at 16:08

    Thank you very much Olga, it seems to work perfectly!
    You saved me!
    Thanks a lot again, kind regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 21, 2017 at 17:00

    You are welcome!

    Regards

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

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

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