Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 ASP (Windows server) versions
 How to put Order # at top of the Thanks.asp page?
Author « Topic »  

claudia
Starting Member

USA
7 Posts

Pre-sales questions only
(More Details...)

Posted - 03/09/2021 :  11:32:06  
Apologies up front if this is something so obvious that I've missed it.

On the thanks.asp page, which of course is what shows after a customer has successfully completed an order, how do I get the Order # to show up at the top of the page rather than in the middle of the page in the section where the email, shipping method, and additional information fields are located?

I've looked around and don't see anything obvious, well obvious to me that is.

Currently the thanks.asp page has "Thanks for Ordering" in the center at the top of the page, and underneath it is where I"d like the order number to be. I'd thought maybe it was something I could add/edit in the Email Message section, specifically the Receiptheaders section as that is where I was able to edit the Thank you for your order blah blah on the thanks.asp page. I'm sure there is a %orderid% or something to be put there but when I try it doesn't work as it just shows %orderid% on the thanks.asp page.

Thanks in advance!

Claudia

dbdave
ECT Moderator

USA
10411 Posts

Posted - 03/09/2021 :  11:50:07  
Hi Claudia, I don't think there is an official way to do that, but I do have an idea..

In your Receiptheaders email even though the order number is not an option, we can add it another way.
In the message, where you want the order id to show, just place this
<div id="ordnum"></div>

Then open your thanks.asp page in your favorite html editor and somewhere after the include line <!--#include file="vsadmin/inc/incthanks.asp"--> add the following javascript
<script>
document.getElementById("ordnum").innerHTML = "Your order number is <%= ordid %>";
</script>


That should work. I haven't tested, so let me know if you have trouble and I'll investigate.
Of course you can edit the text in green there to something different if you like.

You can also style that with css

#ordnum {
some:style;
}

Thanks,
David

Edited by - dbdave on 03/09/2021 11:50:58

claudia
Starting Member

USA
7 Posts

Pre-sales questions only
(More Details...)

Posted - 03/09/2021 :  11:55:45  
You sir, are a genius!

That worked PERFECTLY!

Thank you so very much, appreciate you taking the time to figure that out for me!

Have a great day!

Claudia

dbdave
ECT Moderator

USA
10411 Posts

Posted - 03/09/2021 :  11:58:39  
Heyyy... WooHoo...

Good deed for the day checked off!

I'm glad to help Claudia..

Thanks,
David

PS Vince is the local genius... I am only an apprentice...
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000