| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Editing body of main customer page. | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
Been searching for some time and pulling my hair out.
I want to edit the body of the main page with my own static content. Anything I add to /customer/home.tpl /suctomer/home_main.tp. Ends up on every product page. Any suggestion please? |
|||||||
|
#2
|
|||||||
|
|||||||
|
Sorry I forgot to add.. I know its the welcome.tpl but somehow I edited a template and welcome.tpl never shows up again on main page.
|
|||||||
|
#3
|
|||||||
|
|||||||
|
Yes, you need to use welcome.tpl. It is called from home_main.tpl by this line of code:
{elseif $main eq "catalog" and $current_category.category eq ""} {include file="customer/main/welcome.tpl" f_products=$f_products} so make sure you didn't remove that by mistake.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#4
|
|||||||
|
|||||||
|
Thank you.
Its is there. So is welcome.tpl and I've also restored it from original. Still don't have my welcome message. |
|||||||
|
#5
|
|||||||
|
|||||||
|
Your welcome.tpl should look like this:
Code:
Make sure you didn't delete txt_welcome from the language variables section.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#6
|
|||||||
|
|||||||
|
Strange, just did a cut and paste of what you showed and it works.
Only difference I see is I had a blank line at the end. 14 lines rather then 13. Was the welcome.tpl Thank you so much for your help. |
|||||||
|
#7
|
|||||||
|
|||||||
|
Yea, don't edit templates in Cpanel or anything other than the Admin area of X-Cart or a good code editor. Other editors can leave blank spaces which as you now know, will cause problems
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||