Page 1 of 1

order the products on the home page by price

Posted: Mon Jun 14, 2021 5:06 am
by abofayez
Is there a way to order the products on the home page by price?

Re: order the products on the home page by price

Posted: Mon Jun 14, 2021 6:48 am
by Kofod95
You could make a copy of includes/modules/content/index/cm_i_card_products.php (I think that's the one), and corresponding language file. Rename it, and edit the file to make the class name and constants match the new file name, as well as add something similar to 'ORDER BY final_price' to the sql - it might not be 'final_price', and it might not work, but give it a shot!

//Daniel

Re: order the products on the home page by price

Posted: Tue Jun 15, 2021 4:29 pm
by abofayez
I do not have enough experience to modify the codes.... I wish I could find someone to help me.

Re: order the products on the home page by price

Posted: Tue Jun 15, 2021 5:05 pm
by heatherbell
abofayez wrote: Tue Jun 15, 2021 4:29 pm I do not have enough experience to modify the codes.... I wish I could find someone to help me.
Contact a Certified Developer:
app.php/developers

Re: order the products on the home page by price

Posted: Tue Jun 15, 2021 8:48 pm
by Kofod95
abofayez wrote: Tue Jun 15, 2021 4:29 pm I do not have enough experience to modify the codes.... I wish I could find someone to help me.
As @heatherbell wrote; certified developers are there for you, and will happily qoute you!

In general, almost everything is possible with Phoenix. The code is flexible, built to allow easy modifications that won't break anything. This also means that a lot of the possible actions, features and functions does not exist yet, and wait for someone to make it or get it made - in truth, most features and functions haven't even been thought of yet, as so much is possible, and so little is limited.

You probably knew that already, but it might reach someone who didn't :)

//Daniel

Re: order the products on the home page by price

Posted: Wed Jun 16, 2021 1:15 am
by abofayez
You have given me more hope..I will try and I hope to succeed.
Thank you for your ideas and help

Re: order the products on the home page by price

Posted: Wed Jun 16, 2021 5:45 am
by Kofod95
Sounds good, good luck! :)
Please do not hestitate to report your progress, challenges and frustrations here! It might help others, and sometimes others will be able to help you as well.

//Daniel