Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / 2 questions about customization, new comer!

2 questions about customization, new comer!

Locked

Views: 2,524

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
9 Feb 2007, 10:09 AM
#1
great avatar

great

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

2 questions about customization, new comer!

1)If I want to create my own page modules, for example
includes\modules\pages\account, can I put my php file under
my template folder, without overwriting the existed php file.
If my template is TEM1, where should I put the related php file
for replacing the default file?

2)If I don't want too much menu items in admin console, how
can I remove those menus I don't need?

9 Feb 2007, 12:14 PM
#2
pierre avatar

pierre

New Zenner

Join Date:
Oct 2006
Posts:
84
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

Look in the downloads section for the about_us page module, and use that to create your own pages. Remember to rename every line about_us in all the files to the page name you want.

about_us module

9 Feb 2007, 2:12 PM
#3
great avatar

great

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

Pierre:

Look in the downloads section for the about_us page module, and use that to create your own pages. Remember to rename every line about_us in all the files to the page name you want.

about_us module

Thanks. But this is the example for creating new page. My problem is
to create customized module replacing the existed one without overwriting
the existed file. For template files, it works. But for module file under
/includes/module/pages/xxx, I didn't find way.

9 Feb 2007, 2:30 PM
#4
pierre avatar

pierre

New Zenner

Join Date:
Oct 2006
Posts:
84
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

Oh, sorry, I understood you wrong.

9 Feb 2007, 2:41 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

To create a very basic custom template (you can build from there), you need:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Any where you see a /classic/ folder, you can create a folder for your custom template. You should be able to copy the required files from either /classic/ or /template_default/ (usually the better choice).

There are things you can adjust in the admin. Take a look at tools->layout boxes controller and see if that answers your question.

9 Feb 2007, 3:02 PM
#6
great avatar

great

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

afo:

To create a very basic custom template (you can build from there), you need:- >

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Any where you see a /classic/ folder, you can create a folder for your custom template. You should be able to copy the required files from either /classic/ or /template_default/ (usually the better choice).

There are things you can adjust in the admin. Take a look at tools->layout boxes controller and see if that answers your question.

I know how to make new template. I want to replace the module,
For example, shopping cart. I tried
includes/module/YOUR_TEMPLATE/pages/shopping_cart , but it didn't replace
includes/module/pages/shopping_cart.
Am I clear now? :blush:

For the 2nd question, I want to remove some menus in the admin console.

9 Feb 2007, 3:19 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

great:

I know how to make new template. I want to replace the module,
For example, shopping cart. I tried
includes/module/YOUR_TEMPLATE/pages/shopping_cart , but it didn't replace
includes/module/pages/shopping_cart.
Am I clear now? :blush:

For the 2nd question, I want to remove some menus in the admin console.

I don't believe the file you're trying to override is available to be overridden. There's no /classic/ folder in /pages/.

At minimum, you have to create the folders I indicated and copy the files into them. Give the folders the same name you used to Edit template_info.php to give your template a name that you'll recognize in the admin. Then go into the admin to tools->template selection and select your template from the dropdown menu.

You can't remove menus from the admin as far as I know. What are you trying to do?

9 Feb 2007, 3:58 PM
#8
great avatar

great

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

afo:

I don't believe the file you're trying to override is available to be overridden. There's no /classic/ folder in /pages/.

At minimum, you have to create the folders I indicated and copy the files into them. Give the folders the same name you used to Edit template_info.php to give your template a name that you'll recognize in the admin. Then go into the admin to tools->template selection and select your template from the dropdown menu.

You can't remove menus from the admin as far as I know. What are you trying to do?

Ok, Let me express it in another way. If I want to change the functions of this
file, includes/modules/pages/shopping_cart/header_php.php
Can I create another file in other folder, other than change this file directly?
Thus if I choose my template, I can use the modified function of shopping
cart, while old shopping cart still existed. :blush:

9 Feb 2007, 3:59 PM
#9
great avatar

great

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

afo:

You can't remove menus from the admin as far as I know. What are you trying to do?

My boss just got mixed by so many menu items. He wants a simplified
menu. :laugh:

9 Feb 2007, 4:21 PM
#10
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

great:

Ok, Let me express it in another way. If I want to change the functions of this
file, includes/modules/pages/shopping_cart/header_php.php
Can I create another file in other folder, other than change this file directly?
Thus if I choose my template, I can use the modified function of shopping
cart, while old shopping cart still existed. :blush:

If you don't see a /classic/ folder in the directory, overrides aren't allowed, so the answer to your question is no. You'd have to change the original file which would get overwritten with the next upgrade/update. You'd have to be very careful in future to copy your changes into the newer files before overwriting what you have on your domain.

9 Feb 2007, 4:25 PM
#11
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

great:

My boss just got mixed by so many menu items. He wants a simplified
menu. :laugh:

:laugh:

There's no way to do that, but you can use the Admin Profiles download to give him access to only certain functions. Unfortunately, the rest of the functions will still be there, but you don't necessarily want to remove something you'll need later.

9 Feb 2007, 4:41 PM
#12
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,616
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

Could you tell us exactly what you are wanting the Shopping Cart functionality to do with your changes?

10 Feb 2007, 9:37 AM
#13
great avatar

great

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: 2 questions about customization, new comer!

Kim:

Could you tell us exactly what you are wanting the Shopping Cart functionality to do with your changes?

What I want to do is to let different attribute of one product have
unique SKU. And you can select attributes on this product page.

It seems that zen-cart 1.4 will have this function?
When will it be released?