Author |
Topic |
|
[email protected]
VP-CART New User
149 Posts |
Posted - November 25 2011 : 10:35:49
|
Hi everyone, (hey Diego, how are things?)
I was just wondering if there was some kind of tag or code I could use to call up the categoryid from the categories table from inside the tmp_productformat.htm file.
I can call up [ccategory] which pulls from the products table but I need to call up the categoryid for a simple if statement I need to write (an if ccategory==categoryid sort of thing)
Anyone know how I can pull this variable from the db?
Thank you,
Dustin |
|
diegomilito
VP-CART Expert
Argentina
779 Posts |
Posted - November 26 2011 : 00:12:42
|
hey dustin. was a bit busy recently with things.
i think u need to create ur own sub routine in the template.
first, insert the new tag into the template . we say maybe [ADD_MYFIRSTMAGIC]
second, u start adding the new soubroutine in file shopfileio.asp. search the code in shopfileio.asp : Case "AddNumberSubCats" Handle_NumberSubCats value,parsearray, parseRS rc=0
under that code, you can start your new subroutine, exmaple :
Case "ADD_MYFIRSTMAGIC" Handle_MYFIRSTMAGIC value,parsearray, parseRS rc=0
lastly, at the very bottom of the file, u can put your routine eg
Sub Handle_MYFIRSTMAGIC (value, parsearray, parseRS) write your own coding here end sub
Diego. |
|
|
[email protected]
VP-CART New User
149 Posts |
Posted - November 29 2011 : 14:33:17
|
Diego, Your DNA test results are in.
It reads "Genius". |
|
|
diegomilito
VP-CART Expert
Argentina
779 Posts |
Posted - November 29 2011 : 21:45:52
|
LOL, dustin. u are the first person saying me a genius. i 'll make your words into a frame and hang it in my bed room's wall :D |
|
|
|
Topic |
|