Zen Cart Logo
Forums / Addon Templates / Help with some PHP editing a new template (Picaflor)

Help with some PHP editing a new template (Picaflor)

Views: 7,260

Results 41 to 60 of 85
16 Apr 2013, 4:33 AM
#41
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Help with some PHP editing a new template (Picaflor)

just put a few links in the footer itself... would that be a lot harder to do?
You will need to be more precise about what you do and do not want

16 Apr 2013, 4:42 AM
#42
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

Just have a regular footer with 3 maybe 4 links going across the bottom:

Contact US Terms & Conditions My Account

Leaving the Copyright © 2013 VisionaryScience.net. in the footer is preferred also.

If That's not easily do-able I'd like to just be able to disable all but those 3 links in the pop up footer.

Thanks.

16 Apr 2013, 4:57 AM
#43
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help with some PHP editing a new template (Picaflor)

If your template has a /common/tpl_footer.php file in it
Rename it to tpl_footer.off and see what displays

16 Apr 2013, 4:58 AM
#44
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Help with some PHP editing a new template (Picaflor)

You need to delete the files from the Footer Menu mod, leaving the stock tpl_footer.php free to work. Then the ez-pages will show in the footer simply according to how you set them in admin.

16 Apr 2013, 5:12 AM
#45
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

kobra:

If your template has a /common/tpl_footer.php file in it
Rename it to tpl_footer.off and see what displays

Ok take a look at it now, what should I do?

16 Apr 2013, 7:07 AM
#46
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

gjh42:

You need to delete the files from the Footer Menu mod, leaving the stock tpl_footer.php free to work. Then the ez-pages will show in the footer simply according to how you set them in admin.

Where is teh Footer Menu Mod? I can't seem to locate it?

I'll turn the tpl_footer.php back on then

16 Apr 2013, 3:41 PM
#47
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Help with some PHP editing a new template (Picaflor)

Your template came with Clyde Jones' Footer Menu built in. It can be removed so the original footer displays by deleting (or changing the extension to something like .off) the files that make it work. The main mod file is /your_template/common/tpl_footer.php, and disabling that should bring the stock footer back. The file for that should still be in /includes/templates/template_default/common/tpl_footer.php - don't touch that one.

19 Apr 2013, 1:09 AM
#48
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

Ok so I disabled the tpl.footer.php again to try & go with a plain footer.

But there seems to be two divs in the footer, one for the links & the other for the 2013 Copyright

Ideally I'd prefer to just merge these two divs together to make it easier.

How would I go about doing that in PHP?

Also I need to edit the "Conditions of Use" & "Privacy" & can't seem to find the files?

The urls are:

http://visionaryscience.net/index.php?main_page=conditions

http://visionaryscience.net/index.php?main_page=privacy

So where are these files so I can edit & add my own text?

Thanks.

19 Apr 2013, 1:15 AM
#49
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Help with some PHP editing a new template (Picaflor)

Those are things you edit in admin > Tools > Define Pages Editor.

There is no point in merging the footer divs; you can style them as you want the way they are.

19 Apr 2013, 1:35 AM
#50
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

Hmm, so I went to tools/define pages editor & added what I wanted to the define_privacy.php, saved & reloaded page & it didn't change anything on the website?

I went back to the define_privacy.php file in define pages editor & my edits are still there, just not showing on the website?

I will say the Privacy page has the title "Privacy Notice" where as the define_privacy.php file in define pages editor had the page title of "Privacy Sample Text ..." so it seems like they are two different files?

Same thing with Conditions of use page/file too?

19 Apr 2013, 1:52 AM
#51
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

Also what is the footer file with the HTML so I can edit the footer links & add more if I'd like?

Thanks.

19 Apr 2013, 3:41 AM
#52
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

One more thing, the SSL Cert has been successfully installed onto this website, how do I go about getting the HTTPS on some/all of the pages?

I might as well HTTPS on all of the pages right?

19 Apr 2013, 3:48 AM
#53
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

JohnnyScience:

One more thing, the SSL Cert has been successfully installed onto this website, how do I go about getting the HTTPS on some/all of the pages?

I might as well HTTPS on all of the pages right?It might be a good idea reading the FAQ and TUTORIALS. Most of your questions are answered there.

19 Apr 2013, 3:51 AM
#54
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

Ahh finally figured out the define_pages issues, I had display:none on the <P> :blush:

So that is taken care of.

Still need to figure out HTTPS & the footer links

Thanks.

19 Apr 2013, 3:57 AM
#55
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Help with some PHP editing a new template (Picaflor)

You don't want HTTPS for pages that don't actually need it, as it slows down page loading time measurably. Zen Cart automatically protects all pages where security matters when you have SSL enabled and selected in /includes/configure.php and /your_admin/includes/configure.php.

20 Apr 2013, 3:20 AM
#56
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

I found under tools/EZ Pages that it lists if "Page is SSL"

The only one showing green is My Account?

Is that correct for SSL, just that one page? Shouldn't the shopping cart (is this called Zen Cart in EZ Pages?) also have SSL turned on?

20 Apr 2013, 3:23 AM
#57
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Help with some PHP editing a new template (Picaflor)

That indicator only covers ez-pages or ez-page internal links. All account/cart/checkout pages where security is needed are SSL.

21 Apr 2013, 2:06 AM
#58
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

Now that I've disabled the pop up footer, what is the footer file with the HTML so I can edit the footer links & add more if I'd like?

Thanks.

21 Apr 2013, 2:57 AM
#59
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Help with some PHP editing a new template (Picaflor)

There is no need to edit tpl_footer.php to add links - that is what the ez-page footer links are for. Just make a new ez-page and enable it for the footer with a sort order. If you want a link to an existing page of your site, make it an "internal link" and if you want to point to another site make an "external link". The instructions for this are in the tutorials on ez-pages.

21 Apr 2013, 5:23 AM
#60
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Help with some PHP editing a new template (Picaflor)

Ok I'm going to try the EZ Page option now.

Say I wanted to add a pdf file below the description for people to click on & open it up, how would I go about doing that, any idea?