Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.00 Issues
 How to add a dash
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - August 15 2016 :  07:19:23  Show Profile  Reply with Quote
Anyone know how to add a dash in order detail page (shoppaddtocart.asp)?

Example :

Customer Information

Name Daniel Richardson
Address 123 Street
City City
State/Province AL 12345 US
Email danielridchardson@yahoo.com
Phone 1234567890

modify to :

Customer Information

Name Daniel Richardson
Address 123 Street
City City
State/Province AL - 12345 - US
Email danielridchardson@yahoo.com
Phone 1234567890

Thanks

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - August 15 2016 :  07:20:33  Show Profile  Reply with Quote
Also on shopthanks.asp page.

Thanks
Go to Top of Page

ryo_best
VP-CART New User

90 Posts

Posted - August 15 2016 :  09:32:31  Show Profile  Reply with Quote
Hi Daniel,

Do you mean you want to change this on shopcreateorder.asp page instead shopaddtocard ?

I f you want to add dash on customer information at shopcreateorder.asp, just edit file shopcreateorder.asp, then locate line 442 - 443 :

Line 442 merge_string_to_main statecodecountry, strState
Line 443 merge_string_to_main statecodecountry, strPostCode

Change this to :

Line 442 merge_string_to_main statecodecountry, strState & "-"
Line 443 merge_string_to_main statecodecountry, strPostCode & "-"

Save and refresh again, your state/province will have dash now.

cheers
Go to Top of Page

ryo_best
VP-CART New User

90 Posts

Posted - August 15 2016 :  09:43:49  Show Profile  Reply with Quote
Sorry, forgot about shopthanks.asp

If you want to add dash for customer information at shopthanks.asp, just edit file shopformatorder.asp and locate line 405 - 406 :

Line 405 merge_string_to_main statecodecountry, stroState
Line 406 merge_string_to_main statecodecountry, stroPostCode

Change to :

Line 405 merge_string_to_main statecodecountry, stroState & "-"
Line 406 merge_string_to_main statecodecountry, stroPostCode & "-"

Hope this helps.

cheers
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - August 15 2016 :  09:49:01  Show Profile  Reply with Quote
AWESOME Ryo,

Thanksss
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - August 15 2016 :  11:29:36  Show Profile  Reply with Quote
Anyway, if I modify shopformatorder.asp around line 405 - 413 to the following code

dim statecodecountry
statecodecountry = ""
''merge_string_to_main statecodecountry, stroState & "-"
''merge_string_to_main statecodecountry, stroPostCode & "-"
''merge_string_to_main statecodecountry, strocountry
DoField_Order "", statecodecountry
DoField_Order GetLang("langcuststate"),stroState
DoField_Order GetLang("langcustpostcode"),stroPostCode
DoField_Order GetLang("langcustcountry"),strocountry
....

Will be like this:

Customer Information

Name Daniel Richardson
Address 123 Street
City City
State/Province AL
Zip Code 12345
Country US
Email danielridchardson@yahoo.com
Phone 1234567890
Go to Top of Page

ryo_best
VP-CART New User

90 Posts

Posted - August 16 2016 :  09:31:04  Show Profile  Reply with Quote
Nice info danielrichardson.

Thanks.

cheers
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