order the products on the home page by price

Ask the community for help and support.
Post Reply
abofayez
Posts: 24
Joined: Tue Jun 01, 2021 9:28 pm
Been thanked: 3 times

order the products on the home page by price

Post by abofayez »

Is there a way to order the products on the home page by price?
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: order the products on the home page by price

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
abofayez
Posts: 24
Joined: Tue Jun 01, 2021 9:28 pm
Been thanked: 3 times

Re: order the products on the home page by price

Post by abofayez »

I do not have enough experience to modify the codes.... I wish I could find someone to help me.
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: order the products on the home page by price

Post 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
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: order the products on the home page by price

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
abofayez
Posts: 24
Joined: Tue Jun 01, 2021 9:28 pm
Been thanked: 3 times

Re: order the products on the home page by price

Post by abofayez »

You have given me more hope..I will try and I hope to succeed.
Thank you for your ideas and help
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: order the products on the home page by price

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Post Reply