Jump to content

Custom Order Confirmation page


mike2352

Recommended Posts

Hi,

 

I have a couple questions on customizing the order confirmation page. I see from some forum posts by Matt that it's possible, but I'm not exactly sure how to go about it.

 

1) Which .tpl file should I edit to customize the order confirmation page (and no other pages)?

 

2) Is it possible to display variables from a particular order on the order confirmation page?

 

For example, variables that get passed into the Welcome emails, etc... Such as username, domain, etc?

 

Thank you for your help.

Link to comment
Share on other sites

Ok, now assuming that your orderform template is Cart, and you selected [select to not automatically redirect and just show the order completed page]. (these can set at: Setup \ General Settings \ Ordering)

 

For question No 1: the answer is complete.tpl [path: WEBSITEDIR\WHMCS\templates\orderforms\cart\complete.tpl]

 

For question No 2: and unfortunately, only invoiceid is passed from WHMCS to the template file, making it a bit complex to get other value you're looking for, but you can using php code to get these value based on invoiceid (directly querying database ), since all data is connected somehow.

 

I hope it was helpful answer ;)

Edited by lysenshi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated