Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Can anyone tell me Why my home page looks like this?

Can anyone tell me Why my home page looks like this?

Locked

Started by youshine on 19 Jun 2009, 4:38 PM · Views: 2,332

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
19 Jun 2009, 4:38 PM
#1
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Post #1 by youshine

Dear Successful Zen Cart users,

Remember those days when you had frustration after frustrtion installing your first Zen Cart?

I am now now at that stage needing your help.

I just installed (this is my second tries) V1.38a, and created all the custom directories all by the name of /phoup .

Can anyone tell me why my home page looks like this not picking up images? Where do I tell Zen Cart that my custom directory name is phoup? What should be my next move?

Thanks!****

http://www.phoup.com/4zen1.gif
19 Jun 2009, 4:48 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #2 by niccol

That is because the stylesheet.css file is not being applied for whatever reason.

This is because there are these errors on your server.:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /zencart1/includes/templates/phoup/css/stylesheet.css on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>

So it is a permissions issue. What permissions have you set for the stylesheet on the server?

Nick

Nick
iszent.com

19 Jun 2009, 5:57 PM
#3
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Post #3 by youshine

Thanks Nick for your quick reply...
I appreciate very much for your quick reply to my first post here...

All I did was to set the attributes of the file ( I forgot which one was...:no:) to get rid of the RED warning that used to appear on top of the first home I saw when I installed first.

maybe my sticky fingers did wrong to some other directories as well???

Per your advice, I just made the directory of /includes/templates/phoup/images to 777 but the page remains the same....

Any further advice? Did you use the manual they sell here? So far I followed the tutorials...

19 Jun 2009, 6:15 PM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #4 by niccol

The path to the file is:

/zencart1/includes/templates/phoup/css/stylesheet.css

That is the file that you are unable to access. Find out what its permissions are. But it may signal a bigger problem with permissions which will show up later.

Have a look at:

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

Which may also help.

Which ftp program are you using?

Nick
iszent.com

19 Jun 2009, 8:39 PM
#5
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Post #5 by youshine

Thanks Nicole!

Thanks to you, I now have my home looking more like the first page I initially gotten after installation.

I have gained some confidence as well in myself.

Unless you helped me, I'd almost give up this program.... for ShopRite Pro which is quite expensive program...

I owe you a favor here...

http://www.phoup.com/zencart1/

19 Jun 2009, 8:46 PM
#6
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #6 by niccol

well done!

Permissions can be a headache. Stick with it. It is a steep learning curve at the start but will all be worth it! You'll have lots of 'Oh I get it moments.':D

Nick
iszent.com

20 Jun 2009, 12:02 AM
#7
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Post #7 by youshine

You're so nice, Nicole!

I am still struggleing with the following error notice:

=======
Forbidden
You don't have permission to access /zencart1/includes/templates/phoup/images/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

My webhosting service admin looked into the situation and adviced me that all's well.

Could you please check it now.
http://www.phoup.com/zencart1/
Also please note that, files permission should be chmod to 644 and folder permission should be chmod to 755.

Thank You,
Ron Reddy
https://www.webhostingpad.com

Ticket Details

Ticket ID: WPW-243649
Department: Support
Priority: High
Status: Closed

I tried to make all the files in the image directory even to 777 with no success...

Any suggestion?

:hug:

21 Jun 2009, 3:43 PM
#8
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #8 by niccol

I really thought I had replied to this already! Must be going mad.

I looked before (yesterday?) and saw that you had images up and working. Tell me that I am not imaging seeing images of photos on mugs etc. Please tell me that I am not imagining that!

Have you still got problems? Let me know and I'll have a look.

Nick
iszent.com

21 Jun 2009, 10:56 PM
#9
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Post #9 by youshine

Dear Niccole,

Thanks to your encouragements, {YES, you are not imagining...,} actually I was able to set up Zen Cart V1.3.8. And I am now waiting for the store owner (my friend) to come up with products by categories.

The products that you saw on my zen cart site were somebody else which I borrowed temprarily to show my friend that ZenCart can work for us.

My friend was willing to dole out a couple of thousand dollars for ShopRite Pro (?) seeing the frustration that I went through with Zen Cart. Without your help, I must have given up with Zen Cart.

At this moment, I am looking for ways to change the "Page 2" at more information which is at the left sidebox to something else.

:clap:

http://www.phoup.com/zencart1/

21 Jun 2009, 11:07 PM
#10
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Post #10 by youshine

P.S. The permission problem is still there. I believe it is a bug that I get it when I press PREVIEW button at the Tools> Template selection (my webhosting admin seems to have given up on that issue as well... for I have gotten no reply for a day or two so far...)

22 Jun 2009, 11:48 AM
#12
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #12 by niccol

Well, the permission problem is odd. If ti is only happening on the preview just check the permissions on:

scr_template_default.jpg that is in the images folder of the appropriate template.

This folder doesn't hold all the product images obviously, just the images that are used in the template. In that folder is also tile_back.jpg which is use as a background for the headings and seems to be accessed fine. So, I am guessing it is a problem either with the individual file's permissions or the individual file itself.

As far as Page 2 goes, you need to have a look in :

admin - tools - EZ-pages :

You can define them all in there and change their names and where the links are displayed etc.

Nick
iszent.com

22 Jun 2009, 3:51 PM
#13
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Post #13 by youshine

Thanks Niccole for thes tips.

I will check into that...

The classic PREVIEW shows up fine, just my own PHOUP {custom} template preview is not coming up but issues that permission error notice. I looked into the folder where classic preview jpg is stored but found none of my custom template preview jpg... I guess that could be the problem...

maybe when i set up the custom template, I had not set the permission correct frustrating our smart Zen Cart from writing the custom PREVIEW jpg....?

============

NOW that I have your further attention, may I ask you ONE nagging question I had that is, Which files Zencart looks, those in the classic folders? or my custom folders which are named as /phoup/... ? How does zencart know that I named my custom folders as "phoup"?

Thanks again for taking time to leave a reply for me...

:yes:

22 Jun 2009, 4:58 PM
#14
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #14 by niccol

Well that makes a bit more sense.

The preview is just an image file that is stored in that template. Zen Cart does not 'look' at your template and produce a preview. So the image that is appropriate for the classic template is included with Zen Cart. If you want to use an image that is appropriate to your own template then you have to provide that image. You could use a screenshot of your site.

The image that is for the classic template is in :

includes - templates - classic - images

and is called** scr_template_default.jpg**

Now look in :

includes - templates - YOURTEMPLATE - images

If there is a file called scr_template_default.jpg then that one will be used as a preview for your template. So, if you have a screenshot then you can call it this name and upload it to this file and it will be used in the preview. Obviously it needs to have the correct permissions :D

As far as Zen Cart 'deciding' which files to use. Well, that works with the override system. https://www.zen-cart.com/tutorials/index.php?article=230. If a file exists in the template you have specified then zen cart will use that file. If not zen cart will use the default version of the file.

The advantage of overrides is that they are 'outside' the base installation of Zen Cart so when you upgrade Zen Cart the overrides remain in place and still work. In other words the overrides will not be over-written by the upgrade.

Each template contains a file called : template_info.php. This is the file that gives your admin section the basic information about the template. So, in your case Zen Cart finds a file in the phoup folder that is called template_info.php and knows that that file tells it about the phoup template.

In it, with simple editing, you can tell Zen Cart, the template name, the template version, the template author, the template description,and the template screenshot name.

So, if your screenshot is called something other than scr_template_default then this is the place to 'tell' Zen Cart what it is called.

The more you understand the override system the easier Zen Cart gets, so spend some time really getting the hang of it :smile:

Nick
iszent.com

22 Jun 2009, 6:24 PM
#15
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Post #15 by youshine

Thanks again for detailed explanation.

I know some others surely benefit reading your reply.

Then, from now on what I need to edit is only those files in my /phoup directory which I already modified, and not bother with those in the /classic directory... Did I understand you correct?

Or should I edit both the same name files BOTH in /classic as well as /my /phoup directories....?

:yes:

22 Jun 2009, 10:05 PM
#16
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #16 by niccol

You just need to edit the version of the file in the phoup folder. If it is in there and that template is selected then that file will be used.

The idea is that you leave 'classic' and 'default template' (some people seem not to have default) completely untouched. That has a few advantages. Firstly, if you upgrade then the phoup folder with all your edits is not overwritten. Also, you can always revert to a un-modified template if necessary. And thirdly you always have a default version of the files to look at if you get confused about what exactly it was that you edited three weeks ago.

(Sometimes, when I am doing something that I think has the potential to go horribly wrong I just back up my version of the phoup folders before proceeding. That way, if it does go Pete Tong, I can just get rid of the edited files and re-instate my backed up files.)

When you look through the file structure in general you will see that there are 'classic' folders in all kinds of locations. Anywhere that there is a 'classic' folder you should create your own phoup folder rather than edit the files in that location. That will mean that files in your phoup folder 'override' the existing files.

Obviously this is important for files in the template folder but it is also very important in files in the languages folder. The link I sent you before describes the override system better than I can :smile:

So, when you create a new zen cart installation the first thing that you should do is create your own override folders for your new template. Core files are very infrequently over-written by any styling or mods. So much so that when it is necessary people always stress that it is a CORE file and be very careful.

This is a really good system and helps prevent anyone from doing anything really irreparable. Also, it allows people to be a bit braver with things that they attempt, knowing that there is a 'get out of jail' card. If you create a horrible error in something you do then it doesn't crash the whole shebang. You can just switch back to one of the original templates.

By the way, the second thing that you should do is re-name your admin folder to something other than admin for security reasons. If you haven't done that you really should before you go too much further. To do it you need to rename the folder and edit the configure.php files to match the new name.

Have a look at :

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

If you do that then it will really help with security. Not everyone bothers, believe me.

Nick
iszent.com

22 Jun 2009, 11:05 PM
#17
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Post #17 by youshine

Thanks again for such excellent explanation as to the override system.

Your explanation shall be a good addition to the tutorial which needs supplementary explanation in my humble opnion.

I agree now with you totally that zencart is a good system...

Thanks for being there for me.