Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 General help me questions
 Making shipping fields required
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mark Priest
VP-CART Expert

United Kingdom
580 Posts

Posted - October 22 2018 :  16:41:50  Show Profile  Reply with Quote
Where can I change what shipping fields are required?

Regards,

Mark

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - October 23 2018 :  02:46:14  Show Profile  Reply with Quote
try my solution------> i hope it will help you

i take example, shipping field ''Ship to name'', if you want this mandatory

file shopcustomerform.asp and search this coding:

CreateFieldSetRow GetLang("langShipName"),"shipname", strshipname,"No",""
you must change with below
CreateFieldSetRow GetLang("langShipName"),"shipname", strshipname,"Yes",""

next file shop$common_checkout.asp, locate sub ValidateCustomerFields you will have to put this new coding:

if strshipname = "" then
SError = SError & GetLang("langShipName") & GetLang("langCustRequired") & "<br />"
session("serror_shipname") = "yes"
end if

you can of course implement what i suggested above to any other shipping fields you consider to be a mandatory.

best,
diego
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