Jump to content

How to edit page headers during checkout process?


jaatendi

Recommended Posts

I have a few different packages I offer to customers on my website, and when someone clicks on one to order it, they are directed through a series of pages. Each page has the header of "Product Configuration". Can I edit WHMCS so that the page headers are different based on what product they are ordering? For instance, if they ordered my "Standard Hosting Package", Instead of saying :

 

"The product/service you have chosen requires a domain name so please enter your domain name selection from below."

 

the page header would be something like:

 

"Please select the domain to use for your Standard Hosting Package"

 

I don't know PHP, but I understand HTML and can make edits to the existing code. Thanks in advance for your help

Link to comment
Share on other sites

I don't know PHP, but is there a separate file for each products check out process? I'm guessing each product is displaying the same code when it displays "Product Configuration". If its just html, than I would gladly go in and edit the header for each product, but I suspect its more complex.

Link to comment
Share on other sites

Thanks Frank, I replaced some of the text in the english.txt file inside the lang folder, and my site is looking better. I would love to have different headers for each of my four hosting packages. I understand I need to create PHP if statements in order to do this, but I don't know PHP. Do you or anyone else have some existing code that would accomplish this that I could copy and paste in?

Link to comment
Share on other sites

  • 2 weeks later...
Thanks Frank, I replaced some of the text in the english.txt file inside the lang folder, and my site is looking better. I would love to have different headers for each of my four hosting packages. I understand I need to create PHP if statements in order to do this, but I don't know PHP. Do you or anyone else have some existing code that would accomplish this that I could copy and paste in?

 

Hi there,

were you able to get help from anyone or you figured it out yourself? I am also trying to implement similar functionality but stuck because of luck of php skills.

Do you mind sharing you solution?

thanks

Link to comment
Share on other sites

I've given up for the time being, but you'd think everyone would like to have different headings for each product, so eventually we should see something for this.

 

i read your post and looked into it. and, i figured it out. i even made the changes on my site.

you do need to edit one .tpl and i added a line to the LANG file that i am using.

it depends on how you want it to display, but it can be done. 8)

cya

Link to comment
Share on other sites

different headings for each product will be very easy, you dont need to know php to do it you just need to use the smarty syntax.

 

{if $package eq "sompackage"}
   your heading
{elseif $package eq "somotherpackage"}
  other package heading
{elseif $package eq "yet anothe package"}
  yet another package
{/if}

 

I am not entirely sure if the $package variable you would need ot the value to match it to, it may be the package id rather than the package name, however the above is the basics of what you will need to change the heading per product.

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