| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding additional pages | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
![]() Maybe we can modify an HTML catalog page to use for FAQ etc
OR does the HTML catalog produce these added pages in addition to catalog items? |
|||||||
#22
|
|||||||
|
|||||||
![]() In case it helps anyone else, here are the steps I took to add a new php section called "Articles" to our site. If you notice that I've left out anything critical, please let me know. (I don't know php or smarty, so make no promises that this is correct.) I'm also using a very old version of X-cart (3.1.1.3, customized, that has been combined with one part of 3.3.8.) so your mileage may vary. At any rate...
IN THE SHELL: - copy customer/help.php to customer/articles.php, make changes on NEW articles.php file the code needed is: Code:
- copy include/help.php to include/articles.php, make changes on NEW articles.php file the code needed is: Code:
IN X-CART ADMIN VIEW UNDER LANGUAGES: - Choose your desired language - Make sure "Labels" is selected in the "Select topic" dropdown box - Scroll down to "Add new entry" and add your new entry. (In my case, I added "lbl_supermodels", "Model Releases Aren't Just for Supermodels", and "Model Releases Aren't Just for Supermodels" to the fields) - Click the "Apply changes" button - Repeat as necessary for each article you intend to add. IN X-CART ADMIN VIEW UNDER EDIT TEMPLATES: - edit common_templates.tpl and add Code:
(I added it after the help section, but it probably doesn't matter much where you add it.) - add a new file called articles.tpl - edit your newly created articles.tpl file and use this: Code:
(Make changes as needed.) - add a new directory called articles - go to the newly created articles directory and within it add a new template file called articles.tpl. The code needed is: Code:
(Make changes as needed. You can call your sections anything you like, and can have multiple sections - one per article - just like the help files do.) - still under the articles directory, add another new template file within it called index.tpl. The code needed in that one is: Code:
- Next add as many new template files under the articles directory as you like. (One for each article.) I added one called supermodels.tpl. The basic-code needed for those files is: Code:
(change lbl name as needed, and edit your articles/index.tpl file as needed to add additional articles) - Test to make sure it all worked by going to http://www.yoursitename.com/customer/articles.php - If all is well at this point, make the Articles section visible on the main page of your site by editing customer/home.tpl In my case, I added: Code:
right after the include for categories - Test again to make sure it worked correctly by going to the main page of your site. Happy modifying :) -Jackie |
|||||||
#23
|
|||||||
|
|||||||
![]() In 3.7.0 you have the "speed bar". To make a new page tab in the speed bar called "about us", do this:
1. Add selector in skin1/customer/home_main.tpl which will display your About Us template in the center of the cart: {if $smarty.get.mode eq "subscribed"} {include file="main/subscribe_confirmation.tpl"} {elseif $smarty.get.mode eq "about_us"} {include file="main/about_us.tpl"} {elseif $smarty.get.mode eq "unsubscribed"} {include file="main/unsubscribe_confirmation.tpl"} 2. Then create About Us template that will be displayed in the center, create file skin1/main/about_us.tpl and put the following lines there: { include file="location.tpl" last_location="About Us"} {capture name=dialog} Put your about us text here... {/capture} { include file="dialog.tpl" title="Information about our company" content=$smarty.capture.dialog extra="width=100%"} 3. Go to Administration/Speed bar: Link titel "About us", URL "home.php?mode=about_us" |
|||||||
#24
|
|||||||
|
|||||||
![]() Quote:
farvegruppen- Thanx so much for the tip! I tried it with 3.7.x and it worked great!!! Who says you can't build a whole ecommerce site with xcart in 4 days! ![]() -Juliann www.speedniche.com www.over6racing.com |
|||||||
|
|||
X-Cart forums © 2001-2020
|