Page 1 of 3
Featured Products Phoenix Cart
Posted: Sun Feb 28, 2021 5:26 pm
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
Featured Products v2.1.3
Posted: Sun Feb 28, 2021 5:27 pm
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
Re: Featured Products v2.1.3
Posted: Thu Mar 11, 2021 12:26 pm
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
Re: Featured Products Phoenix Cart
Posted: Fri Mar 12, 2021 5:09 am
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
Re: Featured Products Phoenix Cart
Posted: Fri Mar 12, 2021 7:38 am
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.
Re: Featured Products Phoenix Cart
Posted: Fri Mar 12, 2021 7:40 am
by raiwa
@KenSO I sent you a Personal Message
Re: Featured Products Phoenix Cart
Posted: Fri Mar 12, 2021 3:45 pm
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
,);
Re: Featured Products Phoenix Cart
Posted: Fri Mar 12, 2021 3:59 pm
by raiwa
O.K., please remove the coma so it shows:
and also in line 185
Strange, even not correct, it doesn't throw the error in my test store.
Re: Featured Products Phoenix Cart
Posted: Fri Mar 12, 2021 5:47 pm
by Pierre_P
Thanks, that does it
also line 185 i have made the same and working
Re: Featured Products Phoenix Cart
Posted: Fri Mar 12, 2021 8:42 pm
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.