SEARCH AND POST BY ITEM NUMBER

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

Here's one to work on, I set up a demo catalog TAKE A LOOK what really would make this catalog shine,is to be able to click on the model# and it would bring up just that item, I'm able to bring up all the items on page 4, by putting an hyperlink using this command: (http://www.jje.net/quad/cgi-bin/smart.cgi?command=listitems&pos=$i&type=group&group=4)But, I haven't had any luck trying to bring up an item by its ID, only groups, Sure could use some help on this one. Thank You,Bill

-- Bill Ordiway (
jje1@hotmail.com), April 23, 1998

Answers

Hi Bill, I figured it out, Here's what you can do: _______________________________________________________

__________________________________________________________________ Use this form in place of where your # and price are and just change the value=###### to show the model number of the item you want to display. now as long as your model numbers stay unique it should always work. Plus it makes a button for the customer to press for info on the product instead of text (which sometimes confuses people) good luck, by the way if this bulletin board displays this as a button instead of the text just type in this address: http://www.jantekcontrols.com/test.html and view source, it is the file I created to test and run on your database. Best of luck, Marc Burnell

-- Marc Burnell (efxweb@efxweb.com), April 25, 1998.

You can also do this as a text link by adding the following line into the url field (#7) of the database:

/cgibin/smart.cgi?command=listitems&pos=0&type=search&search=####

replace hash marks (####) with the product id number. The result is that you get a dynamically generated page with just that one item on it.

Right now I'm working on a way for the individual page to have a somewhat different appearance than the search listing (with grouped results).

el

-- El Brant (el@wilmington.net), June 23, 1999.


Moderation questions? read the FAQ