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
 formatproductoptions sub
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cps
VP-ASP New User

South Africa
69 Posts

Posted - April 20 2011 :  09:27:26  Show Profile  Visit cps's Homepage  Reply with Quote
Hi,
How does one add ccode to [formatproductoptions sub]? I need to show the code for each child product in tmp_2_column_productformatinvent.htm

diegomilito
VP-ASP Expert

Argentina
723 Posts

Posted - April 20 2011 :  23:36:06  Show Profile  Reply with Quote
i would think that has to change your default code on file shopproductinventory.asp

if your sub products display is using checkboxes, please find inside the file :

sub FormatInventoryCheckbox

and then below few lines of it, search for :

sselect = sselect & "<td><input type=""checkbox""" & setselected & " name=""" & checkname & """ value=""" & subCatalogId & """ /></td><td>" & tempoption & "</td>"

maybe replace with the enhanced code for adding ccode :

sselect = sselect & "<td><input type=""checkbox""" & setselected & " name=""" & checkname & """ value=""" & subCatalogId & """ /></td><td>"&rs("ccode")& " - " & tempoption & "</td>"

Give that a TRY ! :) :)

Diego
Go to Top of Page

cps
VP-ASP New User

South Africa
69 Posts

Posted - April 21 2011 :  06:05:01  Show Profile  Visit cps's Homepage  Reply with Quote
Yay! It worked perfectly :)
I am using the quantity display option. I changed it as follows:

in sub FormatInventoryQuantity

sselect = sselect & "<td>" & tempoption & "</td>"

Changed to:

sselect = sselect & "<td>" &rs("ccode") & "-" & tempoption & "</td>"

Thank you!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000