Zen Cart Logo

Making Page_5 work

Views: 6,287

Results 21 to 40 of 42
24 Jan 2008, 3:17 PM
#21
matthewmiller avatar

matthewmiller

New Zenner

Join Date:
Jan 2008
Posts:
1
Plugin Contributions:
0

Making Page_5 work

Veronika7747:

Why don't you use define_page_generator from downloads? It worked really good for me!
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=804

Veronika

A Windows application is pretty useless to people running Zen cart on Linux. There's also the fact that a lot of users only have FTP and DB access, so they can't run a Windows application against the production system even if the server is running Windows.

A stand alone Windows application is pretty useless for many of the people running Zen Cart, no matter how much they need the functionality.

Now, Step-by-step directions on HOW to do what this little .NET widget is doing WOULD be of use. Anyone have a link to such directions?

24 Jan 2008, 3:21 PM
#22
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Making Page_5 work

This mod is supposed to be run on your own pc then upload to your server. I understand that some users (I would not say many) are using linux, but they can try a Win simulation software like Wine.

Anyhow, the above program proved to be very useful for me, it may be not for you, but then again there is no program that proved to be useful for everyone.

28 Jan 2008, 8:08 PM
#23
nmuta avatar

nmuta

New Zenner

Join Date:
Mar 2004
Posts:
76
Plugin Contributions:
0

Re: Making Page_5 work

THIS MOD (DefinePageGenerator) is EXCELLENT!!!!!!!!!!!

Vista has .NET already pre-installed, so it took literally seconds for me to generate a new page! I had to do a file comparision with the remote server to make sure I know which pages to upload, but this took seconds.

This mod is a HUGE time saver.

31 Jan 2008, 1:08 AM
#24
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Making Page_5 work

I started using Gayelston's instructions for adding more pages to the "more information". But in the middle of it all, I read the rest of the posts to this thread, and thought more about the "about us" module that I had already installed. I looked at the instructions for it again, and "got" what they meant by how to use the package for other pages.

So I undid what I had done while following Gayelston's info, followed the instructions for the about us module, uploaded, and it worked GREAT!

31 Jan 2008, 5:32 PM
#25
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Making Page_5 work

fakesharksfinsoup:

Hi Gayelston,

1)Go to Admin-->Tools-->Install SQL patches

2)copy and paste the following SQL quote(change the 5 to whatever page number you want) :
insert into configuration (configuration_title, configuration_key,
configuration_value, configuration_description,
configuration_group_id,
sort_order, last_modified, date_added, use_function, set_function)
values
('Define Page 5', 'DEFINE_PAGE_5_STATUS', '1', 'Enable the Defined
Page 5
Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define
Text
ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text
OFF',
'25', '83', now(), now(), NULL, 'zen_cfg_select_option(array('0',
'1',
'2', '3'),');

After posting that I added pages following the instructions for "about us", I realized I was having the same problem as Gayelston--the pages weren't showing up in the configuration/define page status. So I tried the sql patch above and it worked! Oddly enough the pages aren't listed in order, but that's not a big deal. Thanks fakesharksfinsoup! There is no way in hell I would have known how to do this.

2 Feb 2008, 12:12 AM
#26
forum5 avatar

forum5

Zen Follower

Join Date:
Jul 2006
Location:
Louisiana
Posts:
147
Plugin Contributions:
0

Re: Making Page_5 work

gayelston:

That's what I did, by cloning a Page 2in ALL the various places
The new page shows everywhere EXCEPT the Config Define Page Status.
When I select the page from the sidebox, I can see the title on the main page, but none of the text that I entered using the Tools Define Page Editor.
I even have it on the sitemap.
Just need to know how to make the last bit work.
Regards
Gay
http://www.artyfactsforcrafts.com

BUMP

Did you get the last part done? I'm about to undertake the same change to my store. I'm adding page_5.php

Can I get everything I need from this thread?

2 Feb 2008, 12:20 AM
#27
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Making Page_5 work

Forum5:

BUMP

Did you get the last part done? I'm about to undertake the same change to my store. I'm adding page_5.php

Can I get everything I need from this thread?

Forum 5--I just did all of this (and posted about it). I think the easiest way to go is using the "about us" module, then follow fakesharksfinsoup's info on using the sql patch so that the pages will show up in the configuration/define page status.

24 Feb 2008, 12:08 AM
#28
shinyadornments avatar

shinyadornments

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Making Page_5 work

I've read through this thread and am still stumped about what I missed in the edits.

I THOUGHT I edited all the necessary files, but looks like I've missed something.

I've got my new page_5 link to appear in the more info box (I've called it Links), the page_5 correct headings appear (LInks at the Heading and Nav titles), the page_5 option appears in my Define Pages drop down box editor, and I've uploaded define_page_5.php, but the contents of define_page_5.php don't appear on this page. Even if I edit page_5 in the DEFINE pages editor, the new contents don't appear on this page

http://shinyadornments.com/shopping/index.php?main_page=page_5

Can someone tell me what I forgot to edit?

Kristy

24 Feb 2008, 12:44 AM
#29
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Making Page_5 work

In your tpl_ file there is probably a reference to:
DEFINE_PAGE_5_STATUS

where do you have this defined to turn it on?

24 Feb 2008, 12:52 AM
#30
shinyadornments avatar

shinyadornments

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Making Page_5 work

Do you mean these lines in tpl_page_5_default.php ?

<?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?> <div id="pageFiveMainContent" class="content">
24 Feb 2008, 1:00 AM
#31
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Making Page_5 work

Yes, somewhere you need to have that constant:
DEFINE_PAGE_5_STATUS

actually defined or its value is 0 ...

On the regular pages, we have that stored in the configuration table for the define pages ...

24 Feb 2008, 1:17 AM
#32
shinyadornments avatar

shinyadornments

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Making Page_5 work

Aha...

light went on. I need to add it to Define Page Status in admin and then turn it 'on'. Can you tell me which file to edit to add it as its not appearing as a choice right now?

24 Feb 2008, 1:21 AM
#33
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Making Page_5 work

Zen Cart does this in the configuration table ... for example Page 4 uses DEFINE_PAGE_4_STATUS and that is added to the database with the INSERT of:

insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('Define Page 4', 'DEFINE_PAGE_4_STATUS', '1', 'Enable the Defined Page 4 Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '84', now(), now(), NULL, 'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),');

You could customize that and make the 4s be 5s and change the '25, '84' to 25', 85' and you should then find it in the Configuration ... Define Page Status ... with all of the other settings ...

24 Feb 2008, 1:30 AM
#34
shinyadornments avatar

shinyadornments

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Making Page_5 work

So each extra page I add, I can edit that insert as necessary and then copy/paste it to the text box on

        admin/sqlpatch.php  

to add the page to the database and thus the config pages?

And again, thanks so much for your super swift reply to my inital post...
:-)

24 Feb 2008, 1:32 AM
#35
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Making Page_5 work

Yeps ... as easy as that ... :cool:

Just edit those settings and and increment everything appropriately ...

NOTE: Make sure that there is a semi-colon on the end of the line when using the Insert SQL Patches ...

24 Feb 2008, 1:49 AM
#36
shinyadornments avatar

shinyadornments

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Making Page_5 work

That worked like a charm and the page is now active.

Just one small problem. The text content on the page looks like it is pointing to the text content of the page 4 instead of page 5.

I'm guessing that the include I just edited is pointing it the define_page_4 instead of define_page_5, right?

I changed the 84 to an 85, should I edit again to an 86?

24 Feb 2008, 1:54 AM
#37
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Making Page_5 work

Browse the configuration table in phpMyAdmin and look at the configuration_key for anything that starts with DEFINE_PAGE and see what you have in there ...

If all is well ... make sure that your tpl_ is calling the page 5 and not page 4 ...

24 Feb 2008, 2:27 AM
#38
shinyadornments avatar

shinyadornments

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Making Page_5 work

Its pointing to the right pages from what I can tell. How do I access the configuration table in phpMyAdmin to look at it?

24 Feb 2008, 2:34 AM
#39
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Making Page_5 work

You would go to phpMyAdmin on your site or your Control Panel and find your access to phpMyAdmin or contact your hosting site and ask where it is hiding ... then find your database and browse your configuration table ...

As these things are added in order you can either go to the end of the file, the most likely place it will be when sorted on the configuration_id or do a search on a Like % ... % for:
DEFINE_PAGE

and you should see them all ...

I am surprised, however, that unless you have a typo on the one you just added that it could have been added as a duplicate ...

Also, you might do a search with Tools ... Developers Tool Kit ... in the bottom input box for:
DEFINE_PAGE_5_STATUS

and see what files are using it ... then do a search on:
DEFINE_PAGE_4_STATUS

to see what files are using that ... and make sure everyone is matching up in the right groups ...

24 Feb 2008, 3:09 AM
#40
shinyadornments avatar

shinyadornments

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Making Page_5 work

Wooo hoooo I found it!
I had modules/pages/page_5/header_php.php pointing to page 4 instead of page 5.

whew...

thanks again for the assist.

Have a great weekend,

Kristy