atari
Starting Member
30 Posts |
Posted - February 10 2005 : 15:51:39
|
I'm not really answering your questions directly, but I'll give you an example of what i've done.
if you go here: http://www.rackattack.com/shopdisplayproducts.asp?id=37&cat=Thule+Wintersport+Racks you'll see that each product has links for "instructions" and "buy factory mounts". In the template for the products (tmp_productformat.asp) the code to view those is just [formatproductoptions]
what I gather is that you want to be able to add your own [ ] tags to your template files. in shopproductformat_template.asp there is this (line 69) Sub Handle_Product (isub) select case isub Case "FORMATIMAGE" Formatimage 'added by sean 10/12/04 Case "FORMATLOCKLINKS" FormatLockLinks Case "FORMATBUTTON" If ProductSelect="Yes" then AddSelect else Formatbutton end if Case "FORMATHYPERLINKS" Formathyperlinks Case "FORMATOVERALLRATING" Formatoverallrating Case "FORMATPRODUCTOPTIONS" Formatproductoptions Case "FORMATQUANTITY" Formatquantity case else debugwrite "Unknown sub" end select end sub
if you noticed I added my own formatproductoptions to the list, now all you have to do is add the sub "formatproductoptions" to shopproductformat.asp. When your template file has [whatever] it goes tot he product_template file and finds the subrutine, then in productformat it runs it.
so for you, you can either edit exsisting VPASP code to grab the values from the DB for you, or write your own sub (I reccomend that). use shopopendatabase yourConnObj query the DB for the items you want, and write them to the screen.
hope this helps a bit!
|
|
|