B-Drive Posted July 24, 2019 Posted July 24, 2019 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.
paul2009 Posted July 25, 2019 Posted July 25, 2019 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 Much more data is available in the page JSON (customer details, tax information, shipping information and so on) but for some strange reason Squarespace do not make this data available using tags. It won't make any difference in the short term, but you can raise a feature request for more data to be available by contacting Squarespace Customer Care here. Do explain the reasons behind your request so they can understand the benefits and whether they will help a large number of users. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
B-Drive Posted July 25, 2019 Author Posted July 25, 2019 @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.
B-Drive Posted July 25, 2019 Author Posted July 25, 2019 @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.
B-Drive Posted July 25, 2019 Author Posted July 25, 2019 @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.
B-Drive Posted July 25, 2019 Author Posted July 25, 2019 @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.
paul2009 Posted July 25, 2019 Posted July 25, 2019 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? Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
B-Drive Posted July 25, 2019 Author Posted July 25, 2019 @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.
Emma2893 Posted November 10, 2020 Posted November 10, 2020 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!
paul2009 Posted November 10, 2020 Posted November 10, 2020 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 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.