Featured Products Phoenix Cart

Open to all! Ask other shopowners for help.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Featured Products Phoenix Cart

Post by raiwa »

That’s it. I’m developing under PHP 7.4. Thanks for pointing that out.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27


Join The Code Co-op to get access to your library in the Code Co-op Forum
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Featured Products Phoenix Cart

Post by raiwa »

Updated to Version 2.2.4 with the above fixes

https://www.oscaddons.com/en/free-add-o ... -p-76.html
https://www.oscaddons.com/download_free ... v2.2.4.zip

Changes version 2.2.4.:
- Fixed error for PHP versions lower than 7.3.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Featured Products Phoenix Cart

Post by raiwa »

Updated Version 2.2.4 with the above fix also applied to admin/featured.php

To update just replace this file.

https://www.oscaddons.com/en/free-add-o ... -p-76.html
https://www.oscaddons.com/download_free ... v2.2.4.zip

Changes version 2.2.4.:
- Fixed error for PHP versions lower than 7.3.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
ThatSweetShop

Re: Featured Products Phoenix Cart

Post by ThatSweetShop »

Can I use this feature as a showcase products made for clients? What I mean is to have these items only show in featured and not shown with any other products?
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Featured Products Phoenix Cart

Post by raiwa »

Hi @ThatSweetShop ,

Yes, sure you can use it as showcase, but if you do not wish to show these products in other places, you'll need to do some trick.
You could for example place these products in the root category (outside any category) so they would not show in the normal categories listings-
But they would still show in the new products page and modules. For to hide them also there you would need to tweak the coding and add an additional flag (category not 0) which needs to be added to the product queries to hide them in all other places except the featured modules.

Another maybe easier way could be to use products with status = off as featured products and modify the query in the featured products modules to show products with status = off (false). On that way they would show only in the featured modules.

Easier is to remove the price, You just need to comment out or remove the price output in the template files.

Hope this helps
Rainer
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
ThatSweetShop

Re: Featured Products Phoenix Cart

Post by ThatSweetShop »

raiwa wrote: Mon Mar 29, 2021 3:06 pm Hi @ThatSweetShop ,

Yes, sure you can use it as showcase, but if you do not wish to show these products in other places, you'll need to do some trick.
You could for example place these products in the root category (outside any category) so they would not show in the normal categories listings-
But they would still show in the new products page and modules. For to hide them also there you would need to tweak the coding and add an additional flag (category not 0) which needs to be added to the product queries to hide them in all other places except the featured modules.

Another maybe easier way could be to use products with status = off as featured products and modify the query in the featured products modules to show products with status = off (false). On that way they would show only in the featured modules.

Easier is to remove the price, You just need to comment out or remove the price output in the template files.

Hope this helps
Rainer
Cheers for your suggestions, but I'm a single mum trying to get my family through the pandemic and all this is way over my head. My hubby hasn't a clue about this stuff. When you say switch product off, do you mean make the red and grey buttons next to products in admin? I like your first idea leaving out of any category but how will a not tech savy lady like me sort that is my worry now.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Featured Products Phoenix Cart

Post by raiwa »

When you say switch product off, do you mean make the red and grey buttons next to products in admin?
Yes
he easy solution (no.2 suggestion) is fine it'll do the trick but how will a not tch savy lady like me sort that is my worry now
In the main queries of the featured modules, just remove "p.products_status = '1 AND'":
so the relevant lines would change from:

Code: Select all

      ON p.products_id = f.products_id
  WHERE p.products_status = '1' 
    AND f.status = '1' 
to:

Code: Select all

      ON p.products_id = f.products_id
  WHERE f.status = '1' 

If you are not familiar with doing code modifications yourself, you can pay a developer (me or one of the other certified developers) to do it for you.

regards
Rainer
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
ThatSweetShop

Re: Featured Products Phoenix Cart

Post by ThatSweetShop »

raiwa wrote: Mon Mar 29, 2021 4:30 pm
When you say switch product off, do you mean make the red and grey buttons next to products in admin?
Yes
he easy solution (no.2 suggestion) is fine it'll do the trick but how will a not tch savy lady like me sort that is my worry now
In the main queries of the featured modules, just remove "p.products_status = '1 AND'":
so the relevant lines would change from:

Code: Select all

      ON p.products_id = f.products_id
  WHERE p.products_status = '1' 
    AND f.status = '1' 
to:

Code: Select all

      ON p.products_id = f.products_id
  WHERE f.status = '1' 

If you are not familiar with doing code modifications yourself, you can pay a developer (me or one of the other certified developers) to do it for you.

regards
Rainer
My son just did that and it works partly. He changed those lines you said to. The product shows only in featured but when you click to look at product, a message says product not found. So, he switched product back on and it shows when clicked this time. But it is now also showing also with other products. Pardon my errors, not very good at this
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Featured Products Phoenix Cart

Post by raiwa »

The product shows only in featured but when you click to look at product, a message says product not found
Yes, that's how it works with this mod. Switched off products are not available and do not show in all other places including the proper product page.
If you wants to show it, then you would have to modify the query for the product page (which would also allow to show there any other "switched off" product
Or if (and this is what I understood) you wish to show these products only in the featured product modules, remove the link to the product page in the featured module templates.

If this is not what you need, then you have to use my first suggestion and tweak more code which goes over the possibilities to explain in this support thread.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
ThatSweetShop

Re: Featured Products Phoenix Cart

Post by ThatSweetShop »

raiwa wrote: Mon Mar 29, 2021 4:57 pm
The product shows only in featured but when you click to look at product, a message says product not found
Yes, that's how it works with this mod. Switched off products are not available and do not show in all other places including the proper product page.
If you wants to show it, then you would have to modify the query for the product page (which would also allow to show there any other "switched off" product
Or if (and this is what I understood) you wish to show these products only in the featured product modules, remove the link to the product page in the featured module templates.

If this is not what you need, then you have to use my first suggestion and tweak more code which goes over the possibilities to explain in this support thread.
Thank you, It is what I needed except you can't click it so see bigger image. I believe your first suggestion will probably work better. How do I go about getting someone to do this?


Join The Code Co-op to get access to your library in the Code Co-op Forum
Locked