PDA

View Full Version : Making a category for “New” items.



revans
March 23rd, 2003, 06:27 PM
You know how the cart will flag all “new “items. That’s good, but what if a customer wants to see only the new items? She has to trawl through all the catalogue and pick them out one by one.

Now I could go and add a sub-category called say “Items added recently” and then when I add a new product, add it to that category too. So the customer could click on “Items added recently” and get only new products, regardless of what other category they were also in. Problem though: at some time I’d have to go back in and remove that category from older products, and be keeping track of when a product was entered etc. unlike flag system which is slicker because it maintains itself.

I was trying to come up with a way to do this, the functionality is already built in, but I’m not good enough of a programmer to figure it out. Basically I was writing a page to load into demo.php which queried the DB for flagged items. Doesn’t work though.

Is there a way to do this besides adding a new subcategory?

Rich
March 24th, 2003, 11:41 AM
This isn't possible at the moment, however it's a great suggestion. I'm moving this topic to the Requests section and we'll try to get it added.

revans
April 19th, 2003, 03:40 PM
I solved this issue as follows:

I have a button from the start page that opens up a new window that loads a page of items sorted by date, most recent first. By making absolute position divs I can cut off the output to whatever I want. In this case I chose to show the last 26 items added to inventory. If I added an item that I don’t want showing up on the “new” list, I can just change its added to cart date to an older date.

It’s a bit of a hack, but it does work. Now I’m going to work on a script that will allow the user to click on a picture and have the browser take them back to the cart and view that item.

If you want to see it go to afternoonmusic.com and click on the “Click here to see new titles” button at the top left.