VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 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-ASP 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-ASP Expert

Argentina
723 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-ASP 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-ASP Expert

Argentina
723 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