Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
Digital-Alphabet

Calling Order Information on Customer Order Confirmation Page

Recommended Posts

Posted (edited)

I've created a custom order confirmation page for my using the code injection feature to redirect purchase confirmations to this new page, but I cannot figure out how to display basic order information on this new page. The HTML I'm using is below. I thought these tags would pull the referenced information:


=========================

 <h1>Order Confirmed</h1>

 <p>Order Number: <strong>{orderId}</strong></p>

 <p>Your order of <strong>{orderGrandTotal}</strong> at Illuman New Mexico has been confirmed. A confirmation has been sent to you at <strong>{customerEmailAddress} </strong>.</p>


=========================

Any ideas would be greatly appreciated.

Edited by Paul2009

Share this post


Link to post
Posted (edited)

You can only access the six tags on the Order Confirmation Page:

{orderId} – The unique ID of the confirmed order

{orderSubtotal} – The subtotal of the confirmed order

{orderSubtotalCents} – The subtotal of the confirmed order, in cents

{orderGrandTotal} – The grand total of the confirmed order

{orderGrandTotalCents} – The grand total of the confirmed order, in cents

{customerEmailAddress} – The customer's email address, as it was entered in the "Billing Info" section

Other variables and tags, that are available in other areas of Squarespace, cannot be accessed on the Order Confirmation Page. It's a strange situation. It won't make any difference in the short term, but you can raise a feature request by contacting Squarespace Customer Care here.

Edited by Paul2009
Initial Revision

If a response has helped you, please give thanks using the  like-20-mag.png.3997345d620e40b4760b5d7a667cad54.png button.
Need personalised help? I'm a professional Developer who works with Designers internationally. You can book me via my company's website. www.sf.digital

Share this post


Link to post

@Paul2009

Thanks for your response... I also saw this information posted above on the Code Injection section of the Squarespace Advanced Settings. If I'm understanding correctly, it seems these variables can only be called on the "official" Squarespace Order Confirmation Page, not the one I've created and to which I'm redirecting completed orders. If so, I can accept that. Otherwise, I'd love if someone has some sample code for calling these variables on a custom order confirmation page.

Thanks again for you time and expertise.

Share this post


Link to post

@Paul2009

Thanks for your response... I also saw this information posted above on the Code Injection section of the Squarespace Advanced Settings. If I'm understanding correctly, it seems these variables can only be called on the "official" Squarespace Order Confirmation Page, not the one I've created and to which I'm redirecting completed orders. If so, I can accept that. Otherwise, I'd love if someone has some sample code for calling these variables on a custom order confirmation page.

Thanks again for you time and expertise.

Share this post


Link to post

@Paul2009

Thanks for your response... I also saw this information posted above on the Code Injection section of the Squarespace Advanced Settings. If I'm understanding correctly, it seems these variables can only be called on the "official" Squarespace Order Confirmation Page, not the one I've created and to which I'm redirecting completed orders. If so, I can accept that. Otherwise, I'd love if someone has some sample code for calling these variables on a custom order confirmation page.

Thanks again for you time and expertise.

Share this post


Link to post

@Paul2009

Thanks for your response... I also saw this information posted above on the Code Injection section of the Squarespace Advanced Settings. If I'm understanding correctly, it seems these variables can only be called on the "official" Squarespace Order Confirmation Page, not the one I've created and to which I'm redirecting completed orders. If so, I can accept that. Otherwise, I'd love if someone has some sample code for calling these variables on a custom order confirmation page.

Thanks again for you time and expertise.

Share this post


Link to post

Perhaps I misunderstand the question. Can you explain a little about WHY you are trying to modify the page and WHAT you need to achieve this?


If a response has helped you, please give thanks using the  like-20-mag.png.3997345d620e40b4760b5d7a667cad54.png button.
Need personalised help? I'm a professional Developer who works with Designers internationally. You can book me via my company's website. www.sf.digital

Share this post


Link to post

@Paul2009 - I'm modifying the confirmation page simply to add additional information and links that would be relevant to the purchaser. The website is for a nonprofit which holds male spirituality events. After submitting a deposit, we want also want to help redirect registrants back to other resources. Many of the men using this website will be over 60 years of age and do not find it so easy to navigate the Web.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...