This topic has 6 replies, 3 voices, and was last updated 7 years, 5 months ago ago by Olga Barlow
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!
Hi,
yes of course you have an option to sort by date: http://prntscr.com/fyctym and ‘Order Way’ for descending or ascending
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!
Hello,
You need to edit
xstore/framework/shortcodes/products.php and
http://prntscr.com/fyj40c
Regards
Thank you very much Olga, it seems to work perfectly!
You saved me!
Thanks a lot again, kind regards
You are welcome!
Regards
Tagged: 8theme, parameters, templates, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up