Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 calling category field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

[email protected]
VP-CART New User

149 Posts

Posted - November 25 2011 :  10:35:49  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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.
Go to Top of Page

[email protected]
VP-CART New User

149 Posts

Posted - November 29 2011 :  14:33:17  Show Profile  Reply with Quote
Diego,
Your DNA test results are in.

It reads "Genius".
Go to Top of Page

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - November 29 2011 :  21:45:52  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00