OXID Community Forum

> International Forums > Templates and Design > How to add a script to the Thank You page?
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: How to add a script to the Thank You page?


Reply
 
Thread Tools Search this Thread Display Modes
#Top   #1  
Old 08-15-2017, 03:40 PM
LanceButters LanceButters is offline
Junior Member
Join Date: Aug 2017
Posts: 4
LanceButters is on a distinguished road
Default How to add a script to the Thank You page?

I want to add a script to the thank you page which is getting displayed after the customer ordered something successfully.

I added my script into
/applications/views/screenportal/tpl/page/checkout_O/thankyou.tpl

because I assumed it would use this template because the page structure was the same in the frontend. I found that out because I made a test order.

However, it doesn't shows my script. I've also added some testclasses to various containers to see if it works, but it just doesn't work.

I deleted the tmp cache in the shop backend.

Is there another template which displays the thank you page?
Or why are my changes not working?

If you need further information, please let me know.

Thank you.
Reply With Quote
#Top   #2  
Old 08-15-2017, 03:57 PM
vanilla thunder's Avatar
vanilla thunder vanilla thunder is online now
Marco's Sidekick
Join Date: Nov 2010
Posts: 6,370
vanilla thunder is on a distinguished road
Default Re: How to add a script to the Thank You page?

isn't this folder name "checkout_O" kind of suspicious? especially because all other folders do no have this "_O" in their names.

The actual / real path is "page/checkout/thankyou.tpl"
Reply With Quote
#Top   #3  
Old 08-15-2017, 09:44 PM
LanceButters LanceButters is offline
Junior Member
Join Date: Aug 2017
Posts: 4
LanceButters is on a distinguished road
Default Re: How to add a script to the Thank You page?

Hmm, thanks for the info. I can't find the "normal path" you gave me. There is no checkout folder, I only have application/views/screenportal/tpl/page/checkout_O

Is there any way how I can find out which template is used?
And by the way, is there a way I can test the thank you page without doing a test order? If I try to enter the page with it's parameters it just redirects me to the homepage, which is of course good and logical, but a way I could test around without doing thousand test orders would be great

Last edited by vanilla thunder; 08-15-2017 at 10:37 PM.
Reply With Quote
#Top   #4  
Old 08-15-2017, 11:07 PM
vanilla thunder's Avatar
vanilla thunder vanilla thunder is online now
Marco's Sidekick
Join Date: Nov 2010
Posts: 6,370
vanilla thunder is on a distinguished road
Default Re: How to add a script to the Thank You page?

you obviously have a child theme "screenportal"
( https://oxidforge.org/en/understandi...rom-4-5-0.html )
If there is no page/checkout/ folder, that means your theme is using original checkout tempaltes.
you can simply create checkout folder, then copy and adapt thankyou.tpl from parent theme.

For repeating last checkout step, you need to uncomment those two lines in thankyou.php:
https://github.com/OXID-eSales/oxide....php#L119-L120
Then you can simply reload thankyou page, but you will still generate new order.
Reply With Quote
#Top   #5  
Old 08-16-2017, 01:10 PM
LanceButters LanceButters is offline
Junior Member
Join Date: Aug 2017
Posts: 4
LanceButters is on a distinguished road
Default Re: How to add a script to the Thank You page?

Thanks a lot, you were right. My shop is using templates from screenportal normally, but it uses the thankyoupage from the default template for some reason.
Reply With Quote
Reply

Bookmarks

Tags
add, page, script, template, templates, thankyoupage

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
addthis script hossec Installation und Konfiguration 3 12-05-2014 10:56 PM
Preisabgleich mit Script itnic Entwickler 1 12-04-2011 03:49 PM
Bildberechnung per Script imd Administration 3 11-19-2010 07:25 PM
One page checkout versus multi page checkout Andrea Seeger Checkout process 10 02-14-2010 12:15 PM
Update Script PE 3.0.4.1 nach PE 4.0.0.0 DerTom Installation und Konfiguration 6 12-03-2008 05:07 PM

All times are GMT +1. The time now is 07:10 AM.