Welcome, Guest ( Customer Panel | Login )




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

Argentina
762 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-CART 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
0 Item(s)
$0.00