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

Redirect after Order Confirmation

Question

Hi, everyone. I'm hoping for some help with code injection. Normally, I'd just play around with it myself, but since this is the checkout page, I need it to work right the first time!

I would like people who check out to see the usual confirmation page, but after a few seconds, be directed to another page on the site (general-info). If possible, the usual confirmation page would show additional text saying something like, "Redirecting to General Information page..." also.

I think I go to Settings/Advanced/Code Injection and down to Order Confirmation Page, but then.... ?

Thanks for any help you can provide!

Share this post


Link to post

11 answers to this question

Recommended Posts

  • 0

I would caution against automatically redirecting customers away from the order confirmation page as it is likely to frustrate and confuse them. 

Would it be more acceptable to simply add the information that will be on your general information page to the order confirmation page instead? That way customers don’t have to be redirected away from the order confirmation page. Depending on what information you would like to display it could easily be added to the order confirmation page. 

Do you have a link to the general information page that you can share?

I can also provide a script to automatically redirect customers if that is what you would still prefer. 

Edited by ThompsonWebDesign

If you see an answer that was helpful please consider hitting the 121238226_Screenshot2019-11-02at14_53_39.png.0416997a5e856e0159fa1edbd624659e.png button on the right. 

Need help with your website or online store? Feel free to get in touch.

thompsonweb.design

Share this post


Link to post
  • 0
1 hour ago, ThompsonWebDesign said:

I would caution against automatically redirecting customers away from the order confirmation page as it is likely to frustrate and confuse them. 

Would it be more acceptable to simply add the information that will be on your general information page to the order confirmation page instead? That way customers don’t have to be redirected away from the order confirmation page. Depending on what information you would like to display it could easily be added to the order confirmation page. 

Do you have a link to the general information page that you can share?

I can also provide a script to automatically redirect customers if that is what you would still prefer. 

Here's my thinking on this: the website www.mindfulcuisine.com offers cooking classes. People sign up for them on the website. There is a page on the website, General Info, that we want all participants to read before coming to class. There's also an Information and Liability Release form that we want the purchasers and any guests to complete prior to class. We've encouraged this on all the product-related pages, as well as the order confirmation email. We still have purchasers who don't fill out the form or don't ask their guests to read the page and complete the form. We end up having them do it right before class, resulting in delays. So, redirecting purchasers to the page (which includes the form as well) is a more direct push to read/complete before class. It doesn't address the guest issue, but it might result in some small improvement.

I can inject this code <meta http-equiv="refresh" content="0; url=http://www.mindfulcuisine.com/general-info" />, but that redirects immediately, and I'd rather have a "Thank You for your Order.... onward to the the General Info Page!" message and then send them there.

Edited by StaceyR

Share this post


Link to post
  • 0

Hi @StaceyR

The zero in your meta refresh statement is what determines the delay before the redirect. Changing it to 10 would delay the redirect for 10 seconds.

 


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
  • 0
6 minutes ago, paul2009 said:

Hi @StaceyR

The zero in your meta refresh statement is what determines the delay before the redirect. Changing it to 10 would delay the redirect for 10 seconds.

 

Awesome! If it's not too much trouble (and possible), can I add text explaining that they'll be redirected? I know a little bit of HTML but that's it.

Share this post


Link to post
  • 0

I think Squarespace is down which is why we're getting the 503 message. 

As for the redirect message I do know how to do this I will just need to wait for Squarespace to backup and running. Did you still want the order confirmation information (order number, total...) to still display or would you prefer for this to stay hidden and just display the message?

Edited by ThompsonWebDesign

If you see an answer that was helpful please consider hitting the 121238226_Screenshot2019-11-02at14_53_39.png.0416997a5e856e0159fa1edbd624659e.png button on the right. 

Need help with your website or online store? Feel free to get in touch.

thompsonweb.design

Share this post


Link to post
  • 0
Just now, StaceyR said:

can I add text explaining that they'll be redirected?

Yes, sure. Just add your text in the same box. You can wrap it in Header tag if you want it to stand out.


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
  • 0
2 hours ago, paul2009 said:

Yes, sure. Just add your text in the same box. You can wrap it in Header tag if you want it to stand out.

Squarespace is back up. I was able to get the text to print! The only bad thing is that one wouldn't see it without scrolling. I would have liked it to be below the text and above the page footer, but maybe that's not easily done. 

 

 

 

 

Screen Shot 2019-11-06 at 1.52.59 PM.png

Screen Shot 2019-11-06 at 1.53.05 PM.png

Edited by StaceyR

Share this post


Link to post
  • 0

Try putting the below in the order confirmation code injector instead.

<div class="redirect-text">
<h2>Thank You for your Order.... onward to the the General Info Page!</h2>
</div>

<script>
	$('.redirect-text').insertAfter('#confirmed-page');
</script>

 


If you see an answer that was helpful please consider hitting the 121238226_Screenshot2019-11-02at14_53_39.png.0416997a5e856e0159fa1edbd624659e.png button on the right. 

Need help with your website or online store? Feel free to get in touch.

thompsonweb.design

Share this post


Link to post
  • 0
1 hour ago, ThompsonWebDesign said:

Try putting the below in the order confirmation code injector instead.


<div class="redirect-text">
<h2>Thank You for your Order.... onward to the the General Info Page!</h2>
</div>

<script>
	$('.redirect-text').insertAfter('#confirmed-page');
</script>

 

It's still at the bottom. At least I didn't crash Squarespace, though!

Share this post


Link to post
  • 0

Sorry, I forgot that you will also need to load the jQuery library as well for that to work. You will need to add the below to your websites global code injector header.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

 


If you see an answer that was helpful please consider hitting the 121238226_Screenshot2019-11-02at14_53_39.png.0416997a5e856e0159fa1edbd624659e.png button on the right. 

Need help with your website or online store? Feel free to get in touch.

thompsonweb.design

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