Re: Price spread

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44077
interpreted = N
texte = James,Set math variables for max and min, before your search. Max should be set to 0 and min should be set greater than the most expensive item in your catalog. Then set up two [founditems] loops, one for display and one before that on your page.Within the first [founditems] place something like:[showif [price]>[max]][math show=F]max=[price][/showif] [showif [price]<[min]][math show=F]min=[price][/showif]Then just above your item list, addPrice range: [min] - [max]. > Hi there > > I am finishing a revamp on my site and would like help to provide the > customer with the spread of prices for products in the form > > Prices from $100 - $180 > > ignoring each price between the lowest and the highest. > > The listing for a product is based on the photo code [pic], a > simplified example is below > > pic description price > cj131 10kt Gold Celtic Wedding Band $100 > cj131 14kt Gold Celtic Wedding Band $140 > cj131 18kt Gold Celtic Wedding Band $180 > > I would be grateful for any help with this as I'm getting tight on time. > > JAMES MURTAGH > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Price spread (Pat McCormick 2002)
  2. Re: Price spread (Glenn Busbin 2002)
  3. Re: Price spread (Donovan Brooke 2002)
  4. Price spread (James Murtagh Jewellers 2002)
James,Set math variables for max and min, before your search. Max should be set to 0 and min should be set greater than the most expensive item in your catalog. Then set up two [founditems] loops, one for display and one before that on your page.Within the first [founditems] place something like:[showif [price]>[max]][math show=F]max=[price][/showif] [showif [price]<[min]][math show=F]min=[price][/showif]Then just above your item list, addPrice range: [min] - [max]. > Hi there > > I am finishing a revamp on my site and would like help to provide the > customer with the spread of prices for products in the form > > Prices from $100 - $180 > > ignoring each price between the lowest and the highest. > > The listing for a product is based on the photo code [pic], a > simplified example is below > > pic description price > cj131 10kt Gold Celtic Wedding Band $100 > cj131 14kt Gold Celtic Wedding Band $140 > cj131 18kt Gold Celtic Wedding Band $180 > > I would be grateful for any help with this as I'm getting tight on time. > > JAMES MURTAGH > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Pat McCormick

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

OT (sort of) WAP/WML and 'form' posts (2003) [searchString] (1997) PCS Frames (1997) Protect vs Authenicate (1997) Sort Order on a page search (1997) Maximum of found items?? (2000) Mac Programs (1998) Final invoice problems (1998) Cookies (1999) Document Contains no data, or showcart error. (1997) [isfile] ? (1997) Putting & into a database (1999) Another [redirect] question (2003) [UPPERCASE] (1997) Forms Search Questions (1997) Help name our technology! (1997) [GREP] Why is the dash invalid? (2002) So when do we get something similar? (1998) Web Delivery Page concept (1997) Polls (2003)