Zen Cart Logo
Forums / All Other Contributions/Addons / About Us page in Information sidebox

About Us page in Information sidebox

Views: 9,548

Results 21 to 40 of 52
19 Aug 2010, 4:04 PM
#21
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

About Us page in Information sidebox

You did right.

The location for the original unadulterated file is
/includes/modules/sideboxes/information.php

and since this file can be overriden by a template version, we copy it to
/includes/modules/sideboxes/MYTEMPLATE/information.php and butcher/merge the code in it to our hearts content.

19 Aug 2010, 6:12 PM
#22
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: About Us page in Information sidebox

Great, moving along.

Now, the about us appears in the dropdown list in the define pages manager and can be editied. Progress.

The link does not appear in the sidebar box. First, to match the other entries, I added the following to /includes/modules/sideboxes/MYTEMPLATE/information.php:

<code> if (DEFINE_FILENAME_SHIPPING <=1) {
 $information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>';
</code>

even though the readme file only contains this line:

<code> FILENAME_SHIPPING):
 $information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>';
</code>

but it didn't work as is, that's why I tried to match existing format.

One other variable is that in an earlier attempt, pre about_us module, I changed the text to the links in the box. I doubt this affects anything but worth mentioning.

Bottom line, everything seems to be working except that the about us link is not appearing in the sidebox. Neither automatically nor manually. The entire information box disappears.

Thanks for your help.

19 Aug 2010, 6:33 PM
#23
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: About Us page in Information sidebox

I need to add to the above that I tried with and without the
(FILENAME_SHIPPING): as I wasn't sure which was appropriate.

I inserted the piece here:

unset($information);

$information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>';

if (DEFINE_SHIPPINGINFO_STATUS <= 1) {

$information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';

I sure wish this was incorporated into the basic build...

19 Aug 2010, 8:54 PM
#24
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: About Us page in Information sidebox

Just for fun, I put the

define('BOX_HEADING_INFORMATION', 'Information');
define('BOX_INFORMATION_PRIVACY', 'Privacy');
define('BOX_INFORMATION_CONDITIONS', 'Conditions');
define('BOX_INFORMATION_SHIPPING', 'Shipping');
define('BOX_INFORMATION_CONTACT', 'Contact Us');

back in the english.php file just to see if it made any difference. Of course not. But I did notice that there was no reference to About_Us in the list. Adding it manually did not help.

Also, there is no reference to it in the Define Page Status list.

20 Aug 2010, 3:47 PM
#25
gjh42 avatar

gjh42

Black Belt

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

Re: About Us page in Information sidebox

The readme says
5. The link to the about_us page has already been added to the information sidebox
so if that is true you should not have to do the modification you have been posting about. Either the mod is not built as it says it is, or you have some files missing or installed wrong. We really can't tell from here what you have done.

You should have installed /includes/modules/sideboxes/MYTEMPLATE/information.php to that path, not to /includes/modules/sideboxes/information.php (which should be left untouched).

20 Aug 2010, 6:48 PM
#26
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: About Us page in Information sidebox

As I installed the "About us" page and link it without any problem, let me explain a few things which are probably not very clear in the Readme file:

The information.php file contains the list of links in the information box. If you have the default links (shipping, privacy, conditions etc), forget anything about MERGE and the "About us" link will be automatically added on top of the list and will appear in the box.

Now, if you want to add another page, you have to MERGE the new page information. Having added many pages (and the corresponding links) what I did was:

Copied any link information, for example

  if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
  }

changed the string SHIPPING to the new page name and pasted these three changed lines inside the file between another two definitions, depending where I wanted the link to appear: first, second, third etc.

The same MERGE has to be performed within the tpl_site_map_default.php file, where you would place the new page link within the existing link in the exact position you want it to appear.

You should have installed /includes/modules/sideboxes/MYTEMPLATE/information.php to that path, not to /includes/modules/sideboxes/information.php (which should be left untouched).
Glenn's comment about the path to install the information.php file is correct and the Readme file needs to be updated.

As I have used this module and have successfully installed many pages which can be seen in the "Information" box, here is the folders structure I have used (you don't need to use the "greek" folder and its subfolders if your site is mono-lingual). File names within each folder are in parentheses:

includes

extra datafiles (about_us_filenames.php)

languages

english (about_us.php)

extra_definitions (about_us.php)

my_template (about_us.php)

html_includes (define_about_us.php)

greek (about_us.php)

extra_definitions (about_us.php)

my_template (about_us.php)

html_includes (define_about_us.php)

modules

pages

about_us (header_php.php)

sideboxes

my_template (information.php)

templates

my_template

templates (tpl_about_us_default.php and tpl_site_map_default.php)


Overrides is my weak point and still find it very confusing after hours of reading. I may have therefore created more or maybe less my_template folders than necessary but you get the general idea.

I think that all changes made by Euonym have made the module inoperable. I would restore all the original files and start from scratch, following the Readme file and whatever part of the above explanations is helpful.

Wishes for good luck and for a nice evening.

25 Oct 2010, 8:58 PM
#27
soapitup avatar

soapitup

New Zenner

Join Date:
Aug 2010
Posts:
16
Plugin Contributions:
0

Re: About Us page in Information sidebox

I am using cherry_zen and would like to add the about us page to the top navagation bar, any Ideas how I can do this please.

Thanks

25 Oct 2010, 9:49 PM
#28
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: About Us page in Information sidebox

Hi,

The "About Us" page is a separate add-on module based on the standard template. You want to install it on the Cherry Zen, which is a custom template and I'm sure that this won't be easy. Cherry Zen has its own support forum: Cherry Zen Template Support Forum and I would post there for help.

Many wishes for good luck. Cherry Zen is a lovely template and I would like to explore it but was put off by the 3000+ posts in its support forum. :cry:

27 Oct 2010, 3:53 PM
#29
gjh42 avatar

gjh42

Black Belt

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

Re: About Us page in Information sidebox

Actually, the installation of an additional page and sidebox link should not be much if any different in this case; a template does not change the fundamental workings of the page system. Getting the link in the top navbar is a separate matter from the normal mod, and can probably be achieved in the same manner as with other links in that location. That question has been asked and answered many times.

28 Oct 2010, 11:38 AM
#30
ajhb avatar

ajhb

New Zenner

Join Date:
Jul 2008
Posts:
59
Plugin Contributions:
0

Re: About Us page in Information sidebox

Hi,

I have the about us mod installed for some time. I've just decided to add another pagge and followed the instructions, but the new page (only in my dev environment) cuts off the footer information.

I've clearly missed something, I just can't see what it is - can someone point me in the right direction.

Thanks,
Adam.

https://www.chococielo.com

28 Oct 2010, 3:56 PM
#31
gjh42 avatar

gjh42

Black Belt

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

Re: About Us page in Information sidebox

Unfortunately, we can't see what it is either, not without seeing the site or maybe the view source to see exactly where the output cuts off.

28 Oct 2010, 7:25 PM
#32
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: About Us page in Information sidebox

I couldn't even find a page where the footer was cut off...

29 Oct 2010, 5:18 AM
#33
gjh42 avatar

gjh42

Black Belt

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

Re: About Us page in Information sidebox

the new page (only in my dev environment)

I think we can't see the site where this is happening.

1 Dec 2010, 8:34 PM
#34
tridith avatar

tridith

New Zenner

Join Date:
Nov 2010
Posts:
3
Plugin Contributions:
0

Re: About Us page in Information sidebox

I am new to the Zen Cart community and website.

I installed this add on and cant figure out something.
I cant get the about page to pick up my "includes\templates\Custom\css\stylesheet.css" settings.

I have this in my style sheet:
.subtitle{
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: bold;
color: #534313;
}

and I was in the "Define Pages Editor" for the "define_about_us.php"
and added the following:

<div class="subtitle">My Text Here</div>

But the style isnt picked up.
What am I doing wrong?
Am I using the wrong css file?

Thanks
Chad

1 Dec 2010, 8:46 PM
#35
tridith avatar

tridith

New Zenner

Join Date:
Nov 2010
Posts:
3
Plugin Contributions:
0

Re: About Us page in Information sidebox

Nevermind to the above, I was editing a backup of my CSS file...FFS

1 Dec 2010, 8:48 PM
#36
gjh42 avatar

gjh42

Black Belt

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

Re: About Us page in Information sidebox

It's always correct to put new styling in your main stylesheet.css. If it is not being picked up, you can check that the edits are actually in the stylesheet copy in your custom template on the server. It is also possible that there is some syntax error that is cutting off execution of the last part of the stylesheet. Where did yopu put the new rule?

OK then... :)
Glad you got it working.

23 Jan 2011, 3:30 AM
#37
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: About Us page in Information sidebox

I have this mod installed.
I'd like to change the links that are showing under my info box.
So instead of shipping I'd like to have E-Juice
I have created the page E-Juice it's called Define_E-Juice.php but can't work out how to put it under the Information sidebox.

Can you please help me to do that?

Thanks

Maxy

24 Jan 2011, 2:32 PM
#38
gjh42 avatar

gjh42

Black Belt

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

Re: About Us page in Information sidebox

Have you studied post 26 above?

24 Jan 2011, 7:46 PM
#39
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: About Us page in Information sidebox

Yes but I'll have to re read it. It's so confusing to me.

Once I do it a couple of times I think I'll get it through my head

16 Feb 2011, 11:21 AM
#40
ravyn avatar

ravyn

New Zenner

Join Date:
Jun 2010
Posts:
26
Plugin Contributions:
0

Re: About Us page in Information sidebox

Hey all,

First off, thanks for the mod, certainly makes the process of adding a define_page 100x easier, and adding that page to the information box.

With that said, I installed the mod.. I wasn't looking for an About_Us page, but went through the motions to familiarize myself. I successfully created the About Us link in my information sidebox, it worked just fine.

I turned off the About Us link, and then went and re-installed the mod, going through all the necessary file/folder name changes and edits as described in the read me, to create a "Size Chart" link and define page.

Everything was working just fine, except one little hiccup. The link appears under the Information tab, but the link text reads "HEADING_TITLE_SIZE_CHART" rather than just "Size Chart." When I click on the link, it still takes me to the define page for size chart.. and I can edit that define page via the admin interface, it appears on the define page status in admin as "Define Size Chart Status" which is currently set to 1.

So where did I mess up with the link name? I assumed the language files, but I went back and double checked, they match identically to the About Us original language files, except that every instance of About Us was switched to Size Chart (or SIZE_CHART) where necessary.

Any help would be greatly appreciated.

Here's a link to my site (warning, it's a lingerie store, so there are risque images). You will find the "HEADING_TITLE_SIZE_CHART" under the Information drop down menu in along the top.

http://test.alexasroom.ca/

Cheers,
Ravyn