jaatendi Posted August 26, 2010 Share Posted August 26, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted August 26, 2010 Share Posted August 26, 2010 You can put PHP code into the template files if you wish using the {php} {/php} tags. 0 Quote Link to comment Share on other sites More sharing options...
jaatendi Posted August 27, 2010 Author Share Posted August 27, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted August 27, 2010 Share Posted August 27, 2010 A lot of the text on the site is located within the lang directory and imported using smarty vars. There is not a separate file for each product. 0 Quote Link to comment Share on other sites More sharing options...
jaatendi Posted August 28, 2010 Author Share Posted August 28, 2010 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? 0 Quote Link to comment Share on other sites More sharing options...
moaa Posted September 9, 2010 Share Posted September 9, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
jaatendi Posted September 12, 2010 Author Share Posted September 12, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
GbGuy Posted September 13, 2010 Share Posted September 13, 2010 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. cya 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted September 14, 2010 Share Posted September 14, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
jaatendi Posted September 15, 2010 Author Share Posted September 15, 2010 Wonderful! I will try it out! In what file and where should the code go? thanks alot 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted September 15, 2010 Share Posted September 15, 2010 Wonderful! I will try it out! In what file and where should the code go? thanks alot header.tpl and most welcome, i seem to be posting losts of helpers here lol 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.