Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / HELP in changing main store page file....

HELP in changing main store page file....

Locked

Views: 2,906

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
19 Aug 2009, 12:59 AM
#1
geltech avatar

geltech

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

HELP in changing main store page file....

Ver. 1.3.8a - OK, I have gotten partial changes accomplished modifying the php files in the "/includes/languages/english" directory. Do I then delete those files and put the modified files in the "/includes/languages/custom" folder that I create as a sub dir under languages? Do I leave both sets of files there?

Thanks for anyone who can shed light on this. :no:

Cheers,
Gabriel

19 Aug 2009, 1:36 AM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: HELP in changing main store page file....

You leave both files there. If you have a custom file, zencart will the customised file. Otherwise it will read the information from the default file. If you want to reverse the changes you can delete your custom files and everthing is back to the default installation.

22 Aug 2009, 4:42 PM
#3
geltech avatar

geltech

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: HELP in changing main store page file....

Still having problems. I have followed all advice found throughout the FAQ and related posts in these boards. Would it help to post the code from the modified files and/or my directory schema?

Thanks,
Gabriel

23 Aug 2009, 8:21 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: HELP in changing main store page file....

A link to your site would be more useful. Have you selected your CUSTOM template in admin?

24 Aug 2009, 9:24 PM
#5
rainbow87 avatar

rainbow87

New Zenner

Join Date:
Aug 2009
Posts:
1
Plugin Contributions:
0

Re: HELP in changing main store page file....

Buy the best and cheapest nfl jerseys,chanel handbags,China whlesale.Please come to us.We are committed to offer the lowest prices on the world of Nike dunks,Nike sb!Our service including: 14-Day Money-Back Guarantee, Free Shipping Worldwide and Wholesale price 35% off. After you finish choosing your favourite Designer Handbags,handbags or other products,We welcome PAYPAL and Credit Card payment.Wish you a happy trip on shopping!!

25 Aug 2009, 4:22 AM
#6
geltech avatar

geltech

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: HELP in changing main store page file....

stevesh:

A link to your site would be more useful. Have you selected your CUSTOM template in admin?
The store site is: https://www.brighidsopenhearth.com/store

I click on TOOLS/Templates to change to the CUStOM template setting but none shows up. I have not made any other templates, only modified individual php files in the ENGLISH directory and saved the modified files into a CUSTOM folder at the same level. Some changes seem to work, others do not.

Thanks,
Gabriel

25 Aug 2009, 10:22 AM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: HELP in changing main store page file....

The way the override system works, you have to create a custom template, select it in admin, place folders using the name of that template in the proper places, and place your modified files in those folders.
**
https://www.zen-cart.com/tutorials/index.php?article=142**

https://www.zen-cart.com/tutorials/index.php?article=230

It's the template_info.php file mentioned in the first tutorial that tells admin you have another template.

26 Aug 2009, 1:01 PM
#8
geltech avatar

geltech

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: HELP in changing main store page file....

OK, added new file structure under INCLUDES/TEMPLATES and copied relevant files into their dirs. I copied and then modified template_info.php as shown below and reuploaded it. I am getting the following error.

Parse error: syntax error, unexpected T_VARIABLE in /home/content/g/e/l/geltech/html/store/includes/templates/custom/template_info.php on line 1

Here is the code of the php file:

<?php/** * Template Information File * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: template_info.php 2306 2005-11-05 21:34:28Z wilt $ */$template_name = 'Custom';$template_version = 'Version 1.0';$template_author = 'GELTECH 2009'; $template_description = 'Custom template for modified store files for Brighids Open Hearth';$template_screenshot = 'scr_template_default.jpg';?>
26 Aug 2009, 1:27 PM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: HELP in changing main store page file....

What program did you use to edit that file?

26 Aug 2009, 2:10 PM
#10
geltech avatar

geltech

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: HELP in changing main store page file....

Notepad

26 Aug 2009, 7:00 PM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: HELP in changing main store page file....

geltech:

NotepadNot recommended. Tends to make a mess of the line endings. A good, free alternative is Notepad++

27 Aug 2009, 8:33 PM
#12
geltech avatar

geltech

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: HELP in changing main store page file....

ok, switched to notepad++, re-edited the file and now when I reload the /store page I get a blank screen.

27 Aug 2009, 10:07 PM
#13
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: HELP in changing main store page file....

Double check the syntax of the changes that you made, especially that the quotes are properly paired.