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

Calling Order Information on Customer Order Confirmation Page


Recommended Posts

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
Link to post
  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

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

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company helping Squarespace users by building the features that Squarespace didn't include.
Explore our range of Squarespace Extensions, including the Wishlist, and Datepicker Extension or book a Squarespace Expert for 1:1 help. Note that links in my posts may be affiliate links.

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.

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.

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.

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.

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?

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company helping Squarespace users by building the features that Squarespace didn't include.
Explore our range of Squarespace Extensions, including the Wishlist, and Datepicker Extension or book a Squarespace Expert for 1:1 help. Note that links in my posts may be affiliate links.

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.

Link to post
  • 1 year later...

Hi! I'm trying to link up squarespace and trust pilot - 

I'd like to also push through the Customer Name, however I can't see that it is possible? Does anybody now what the {customerEmailAddress} equivalent would be please? Would be very grateful if anybody could tell me!

 

Link to post
1 hour ago, Emma2893 said:

I'd like to also push through the Customer Name, however I can't see that it is possible?

There are currently six fields available to code on the order confirmation page. Customer Name isn't one of them.

The fields are:

  • {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

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company helping Squarespace users by building the features that Squarespace didn't include.
Explore our range of Squarespace Extensions, including the Wishlist, and Datepicker Extension or book a Squarespace Expert for 1:1 help. Note that links in my posts may be affiliate links.

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...