Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Flag New Products with in a Category?

Flag New Products with in a Category?

Started by amyn on 19 May 2011, 5:58 PM · Views: 4,558

Results 1 to 20 of 24
19 May 2011, 5:58 PM
#1
amyn avatar

amyn

New Zenner

Join Date:
Jan 2011
Posts:
20
Plugin Contributions:
0

Flag New Products with in a Category?

Is it possible to have some text or an image that says, "NEW PRODUCT" on a product that has been added with in 60days when viewing a category (the product listings page)?

Also, I am using 2 mods for my cart and product listing page:

  • The Column Layout Grid for Product Listing
  • The Single Listing Template

Thank you in advance!

-Amy

Amy

20 May 2011, 3:52 PM
#3
amyn avatar

amyn

New Zenner

Join Date:
Jan 2011
Posts:
20
Plugin Contributions:
0

Re: Flag New Products with in a Category?

Thanks for the reply, gjh42!

Unfortunately, that add-on works with the product info page. Can someone help me get the new product badge on the product listings page?

Amy

20 May 2011, 8:44 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Flag New Products with in a Category?

Okay - I hadn't used that mod, but thought it looked promising.
I have a mod, finished but not yet released, that will put product icons for any of new, back in stock, special or bestseller (as desired) in product listings and other places. I can attach it here if you would like to try it.

21 May 2011, 7:02 AM
#5
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Flag New Products with in a Category?

I would be interested in testing (trying) that mod Glenn!

21 May 2011, 12:46 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Flag New Products with in a Category?

I want to add another place or two where the icons can be shown before final submission to Free Addons. Suggestions for the most desired places would be appreciated. (It actually only takes adding one function call to a line in a file to add icons to a location.)

I'll leave this up while testing is continuing.

1 Feb 2012, 8:17 PM
#7
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Flag New Products with in a Category?

Glenn,

This would be a great addition! I finally got around to playing with it, only thing I am having trouble with is the best seller icon.

It only flags the top (#1) site-wide bestseller - was that intentional?

Also ignores Category top (#1) bestseller.

Is there a way to flag say the top 10 bestsellers?

I tried adding id via stylesheet for bestseller still no go.

I also added the code to flag featured products - works like a charm?

Thanks in advance

1 Feb 2012, 9:24 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Flag New Products with in a Category?

The bestseller feature works not by comprehensively querying the db to sort out the top whatever, but flags anything with sales over a number you set in defines. Obviously you would reset that number as your sales totals increase, to keep the quantity flagged within bounds.

It could be rewritten to be a true top 10 list, but I felt the simple high sellers flag was sufficient. It's not like you see them all at once to know that 8 or 12 or 20 are flagged.

1 Feb 2012, 9:37 PM
#9
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Flag New Products with in a Category?

Yep, makes sense.

guess I should have played with the defines a little more

define ('PRODUCT_ICONS_BESTSELL_QTY', '10');//set sales qty for bestseller status
18 Jun 2012, 2:09 PM
#10
olcs avatar

olcs

New Zenner

Join Date:
Dec 2011
Posts:
92
Plugin Contributions:
0

Re: Flag New Products with in a Category?

rbarbour:

I would be interested in testing (trying) that mod Glenn!

Hi gjh42,

Did this ever get released as an addon please? It looks like just the thing I am looking for as I would love to be able to mark my product images with relevant icons should they be in a sale, new or best seller.

I have searched the free adons but cannot seem to find one that matches this...

Thanks in advance

Lee

18 Jun 2012, 3:57 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Flag New Products with in a Category?

It is not officially released yet, but the preliminary copy attached above should work... though there might have to be some updating for v1.5.0. Any files that would have to be updated would be extremely simple, as existing files that are modified only have one function call added in one spot. I am too busy right now organizing a festival on my land, but when I can breathe after that, I can look into it. Meanwhile, if you are even vaguely familiar with PHP and file comparing, you should be able to do it for yourself.

18 Oct 2012, 9:02 PM
#12
olcs avatar

olcs

New Zenner

Join Date:
Dec 2011
Posts:
92
Plugin Contributions:
0

Re: Flag New Products with in a Category?

Hi gjh42,

Did you ever get change to take a further look at this please? It looks like a fantastic little add on which I would love to use on my v1.5 store, I just wouldn't have a clue where to start trying to 'upgrade' it to be compatible with v1.5.

Thanks

18 Oct 2012, 11:14 PM
#13
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Flag New Products with in a Category?

OLCS:

Hi gjh42,

Did you ever get change to take a further look at this please? It looks like a fantastic little add on which I would love to use on my v1.5 store, I just wouldn't have a clue where to start trying to 'upgrade' it to be compatible with v1.5.

ThanksNot sure that there is an admin menu component to this at all.. That would be the only reason that this would need to be "upgraded" to v1.5.. So basically the version attached to Glenn's earlier post should work just fine if you want to use it.. Just use a file merging program to compare and merge the changes in the package files and you should be good..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

18 Oct 2012, 11:29 PM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Flag New Products with in a Category?

No admin component, so it should be compatible with v1.5.x... there might be a file or two that needs to be updated to the latest version, but the file edits for the mod are so tiny that it would be a breeze (about one line per file, plus head comments).
I had forgotten that I hadn't actually submitted this mod to Plugins.

18 Oct 2012, 11:42 PM
#15
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Flag New Products with in a Category?

gjh42:

No admin component, so it should be compatible with v1.5.x... there might be a file or two that needs to be updated to the latest version, but the file edits for the mod are so tiny that it would be a breeze (about one line per file, plus head comments).
I had forgotten that I hadn't actually submitted this mod to Plugins.That's 'cause you were busy making the middleboxes mod awesome!!:smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

23 Apr 2013, 10:34 AM
#16
uncharted avatar

uncharted

New Zenner

Join Date:
Oct 2011
Posts:
68
Plugin Contributions:
0

Re: Flag New Products with in a Category?

Hello,

I have this module installed on 1.5.0 and have all images set to foreground.
How do I get the icons to show up next or on top of the product image for both center boxes and product listing (using column layout grid module)?
Also, for the final version, I'd like to suggest having the icons for featured products as well.

Regards

23 Apr 2013, 12:35 PM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Flag New Products with in a Category?

You would want to move the product_icons() function call to just before the image code in the relevant files, then possibly adjust the styling if necessary.

The "featured" icon is in the works, as is application to pretty much every kind of listing.

27 Aug 2013, 12:33 PM
#18
dee_d_lady avatar

dee_d_lady

New Zenner

Join Date:
Jan 2011
Location:
Slovakia
Posts:
24
Plugin Contributions:
0

Re: Flag New Products with in a Category?

gjh42:

You would want to move the product_icons() function call to just before the image code in the relevant files, then possibly adjust the styling if necessary.

The "featured" icon is in the works, as is application to pretty much every kind of listing.

Hello,

I really like this module and I wanted to ask you if the final version with support of the featured products icon will be released. I also think that some of us would like the icons to show as overlaid on product image in all listings. I never managed to do this myself, so perhaps someone can give more details on doing this.
Thank you!

1 Sep 2013, 9:21 PM
#19
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Re: Flag New Products with in a Category?

Thanks for this add on.

Just started playing around with it. I have changed the image icons to a css ribbon, but am running into an issue with the display in the 'new products' vs category product listings.

Can be seen here: http://www.shtf-gear.com/default-category/optics/thermal-imaging?sort=20a&page=5
Attachment 12994

When its displayed in the 'New Products' and Search Results page, my positions are all wrong.

I only see where the div is defined once in the product_icon_functions.php, so not sure how I can use different css as necessary for the different pages, as I am a hack at best when it comes to styling via css.

http://www.shtf-gear.com/new-products
Attachment 12995

Attachment 12998

I realize this isn't entirely related to this add on, but hoping to get this squared away then can post up the css changes required for ribbons if anyone wants them in relation to this addon.

2 Sep 2013, 1:01 AM
#20
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Flag New Products with in a Category?

You can qualify the rule with the class or id of the page type, like

#productListing .bIS>.ribbonWrapper>.ribbon {}
``` or whatever selectors you need.