Which Template has the thank you page - subscriptions

ukdenny
@ukdenny
6 years ago
293 posts
When someone has subscribed to a subscription service and paid they are taken to a thankyou page, which skin/module template is this found please.
updated by @ukdenny: 10/24/18 02:49:52PM
douglas
@douglas
6 years ago
2,767 posts
This is not in a template, it is hard coded in the jrSubscribe module.

What are you trying to accomplish?

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
ukdenny
@ukdenny
6 years ago
293 posts
douglas:
This is not in a template, it is hard coded in the jrSubscribe module.

What are you trying to accomplish?

Thanks!

The Affiliate Software vendor needs to> "I still need to know which template is used for the thank you page. Without that info, I can't help you."
So they can add code
paul
@paul
6 years ago
4,325 posts
The skin header and footer templates will still be used on the thankyou page so you could use one of those by first testing that you’re on the right page using the $_post array values.


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
6 years ago
4,325 posts
Something like -
{if $_post.module_url == 'subscribe' && $_post.option == 'success'}
    // Your script here
{/if}



--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
293 posts
Thanks for the support with this project. It now works okay. However I just wondered if/when the system upgrades the template will the code that has been added by my software company get over written?
douglas
@douglas
6 years ago
2,767 posts
If you are using a cloned skin, no... you will not lose your code.

If you have made the modifications via the skins template tab, no... you will not lose your code.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
ukdenny
@ukdenny
6 years ago
293 posts
douglas:
If you are using a cloned skin, no... you will not lose your code.

If you have made the modifications via the skins template tab, no... you will not lose your code.

Hope this helps!

The changes where made to the Index.php for the subscription module, so could not be made via the skin template.
paul
@paul
6 years ago
4,325 posts
Not a good idea to modify core module files as your work will be overwritten should the file be updated.
Let us know what code you’ve added/changed and we will try to advise how it should be done using templates or a custom module.


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 07/03/18 06:43:29PM
ukdenny
@ukdenny
6 years ago
293 posts
douglas:
This is not in a template, it is hard coded in the jrSubscribe module.
Because the thankyou page is as above, and cannot be altered in the templates the code added is as follows:-

The file index.php for the subscription module and look up line number 1069, which should look like this:

jrCore_notice_page('success', "{$note}", "{$_conf['jrCore_base_url'] }/{$_post['module_url'] }/active_subscription", $_ln['jrCore'] [87] , false);

Edit it to this instead:

jrCore_notice_page('success', "{$note}", "{$_conf['jrCore_base_url'] }/{$_post['module_url'] }/active_subscription", $_ln['jrCore'] [87] , false);

Notice the img tag that I added after $note. That is the tracking code.
paul
@paul
6 years ago
4,325 posts
Your code has been stripped out. Put it inside BBCode code tags (see help below).
But whatever your code is, try putting it in the header.tpl template as described above.


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
293 posts
Regarding the Buy it Now buttons if the affiliate code was to be added to these to record sales which 'thank yiu' template would it be please.
ukdenny
@ukdenny
6 years ago
293 posts
paul:
Something like -
{if $_post.module_url == 'subscribe' && $_post.option == 'success'}
    // Your script here
{/if}

What would the code be instead of 'subscribe' if it applied to digital downloads, please

Tags