Featured Products Phoenix Cart

Ask the community for help and support.
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 103 times

Featured Products Phoenix Cart

Post by raiwa »

The purpose of this contribution is to show selected products in the Infobox, instead of the previous stock new products Infobox. The featured products can be chosen in the admin. You also have the option of displaying just a side Infobox that would display only one featured item.
On the main default page of osCommerce, a selection of ALL the featured products will be displayed, and in top-level categories, only featured products that belong to that category.
If there are more featured products than the maximum allowed to be displayed, a random selection will be shown.
It's been written in such a way that the Infobox and main page content will *not* show up if there are no featured products to display.

https://www.oscaddons.com/en/free-add-o ... -p-76.html
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
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 103 times

Featured Products v2.1.3

Post by raiwa »

Compatibility:

Phoenix Cart 1.0.7.12+
Tested with Phoenix 1.0.7.16
Lower versions, please use Featured Products CE v2.0.0.-2.2.2

Changes version 2.2.3.:
- Updated for Phoenix 1.0.7.12+.
- Updated Box Module to use Products Class.
- Moved shop hook and page template to override template.
- Modernized code to match actual Core standards.
- Updated Copyright Info to Phoenix Cart
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
KenSO
Posts: 40
Joined: Fri Mar 05, 2021 12:01 pm
Has thanked: 35 times
Been thanked: 4 times

Re: Featured Products v2.1.3

Post by KenSO »

raiwa wrote: Sun Feb 28, 2021 5:27 pm Compatibility:

Phoenix Cart 1.0.7.12+
Tested with Phoenix 1.0.7.16
Lower versions, please use Featured Products CE v2.0.0.-2.2.2

Changes version 2.2.3.:
- Updated for Phoenix 1.0.7.12+.
- Updated Box Module to use Products Class.
- Moved shop hook and page template to override template.
- Modernized code to match actual Core standards.
- Updated Copyright Info to Phoenix Cart
Hello @raiwa

Are you in a position to do a navbar addon for this addon to provide a solution for this?

viewtopic.php?f=10&t=344

As always, I'm not asking for free. I can pay to have it done as with anything else I need to get my shop as I want it. Thanks
User avatar
Pierre_P
VIP Member
VIP Member
Posts: 100
Joined: Fri Mar 12, 2021 5:06 am
Has thanked: 11 times
Been thanked: 4 times

Re: Featured Products Phoenix Cart

Post by Pierre_P »

Thanks @raiwa for the update on 2.2.3

Parse error: syntax error, unexpected ')' in /includes/modules/content/index/cm_i_featured_products.php on line 175
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 103 times

Re: Featured Products Phoenix Cart

Post by raiwa »

Hi Pierre,
There must be a confusion. Line 175 in this module is a blank line.

Code: Select all

DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
EOSQL
      ,);
						// this is line line 175
  }

    function remove($parameter_key = null) {
The module works in my test store error free.
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
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 103 times

Re: Featured Products Phoenix Cart

Post by raiwa »

@KenSO I sent you a Personal Message
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
User avatar
Pierre_P
VIP Member
VIP Member
Posts: 100
Joined: Fri Mar 12, 2021 5:06 am
Has thanked: 11 times
Been thanked: 4 times

Re: Featured Products Phoenix Cart

Post by Pierre_P »

@Raiwa
Sorry, 174
I tried a few changes, just now re uploaded
The 2.2.2 version was working on Phoenix 1.8, decided to update to 2.2.3 then got error in admin

,);
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 103 times

Re: Featured Products Phoenix Cart

Post by raiwa »

O.K., please remove the coma so it shows:

Code: Select all

EOSQL
      );
and also in line 185
Strange, even not correct, it doesn't throw the error in my test store.
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
User avatar
Pierre_P
VIP Member
VIP Member
Posts: 100
Joined: Fri Mar 12, 2021 5:06 am
Has thanked: 11 times
Been thanked: 4 times

Re: Featured Products Phoenix Cart

Post by Pierre_P »

Thanks, that does it

also line 185 i have made the same and working
ecartz
Lead Developer
Lead Developer
Posts: 2657
Joined: Tue Nov 05, 2019 6:02 pm
Has thanked: 4 times
Been thanked: 182 times

Re: Featured Products Phoenix Cart

Post by ecartz »

raiwa wrote: Fri Mar 12, 2021 3:59 pm it doesn't throw the error in my test store.
Perhaps you are using a newer PHP? Allowing a trailing comma in an argument list is relatively new, 7.3 and later.
Locked