My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 31: PATCH Products are not beeing marked with "New" or "Sale" icons
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jun 2008


 
Reported by edmundo...@gmail.com, Feb 29, 2008
What steps will reproduce the problem?
1. Create a new product or associate a tag called "On Sale" with one.

What is the expected output? What do you see instead?
It should have an icon at the upper right corner showing that. But it don't
have.

What version of the product are you using? On what operating system?
trunk. Ubuntu 7.04

Please provide any additional information below.

Follows a patch. The view isn't passing these informations to the helper,
and if was the product helper method that builds this chunk of code is
using a wrong path to the icon. 
new_and_sale_icons.patch
1.7 KB   View   Download
Mar 18, 2008
#2 johnd...@gmail.com
Hi Edmundo, this patch works fine, all products are
new if they are less than two weeks old. For those who would prefer control over the
tag similar to 'On Sale' just tweek the product.rb model slightly
def is_new?
	  @cached_is_new ||=
	    begin
	      #self.date_available >= 2.weeks.ago
		!self.tags.find_by_name('New').nil?
      end


Apr 8, 2008
Project Member #3 subim...@gmail.com
(No comment was entered for this change.)
Labels: -Priority-Medium Priority-Low
May 7, 2008
#4 fred.the...@gmail.com
Nice Patch
Thanks!
Jun 14, 2008
Project Member #6 subim...@gmail.com
Fixed with r86

Powered by Google Project Hosting