Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding a module to a zen store

Adding a module to a zen store

Locked

Views: 5,459

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
2 Nov 2006, 4:36 PM
#1
pvon34 avatar

pvon34

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Adding a module to a zen store

Hello,

I am working with an already created Zen Cart store that is fully upgraded. There was a previous version of this store using an old version of zen cart and I would like to use some modules that were made for that store in this new store. How (within the php code) can you link new pages to your Zen Store and also what types of things should I look for when "upgrading" these pages to the new zen cart version.

Thank you for your help!

-Patrick

3 Nov 2006, 7:38 PM
#2
pvon34 avatar

pvon34

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Adding a module to a zen store

I guess to clarify my question a little, I am not trying to override a specific page as much as attach a custom page that I have already made. Does anyone have any suggestions on how to link in this custom page and possibly what I should look for in updating the code from this custom page to the upgraded Zen Cart version?

Thank you,
Pat

3 Nov 2006, 8:04 PM
#3
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Adding a module to a zen store

A lot of MOD used in previous versions have been upgraded to work with version 1.3.+ check the downloads section

3 Nov 2006, 8:07 PM
#4
pvon34 avatar

pvon34

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Adding a module to a zen store

Thank you Clyde...

Do you know how to link in new pages? I know I can't just put an absolute link in the code on one page, so I'm wondering if you know which file contains all the links that are built in to each page?

Thank you in advance...

-Pat

3 Nov 2006, 8:25 PM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Adding a module to a zen store

That will depend on which modules were included in the older version of Zen Cart.

If you have that information you could just check in the database for that information add the updated modules to your new install and then import the module specific information from the old database.

7 Nov 2006, 10:40 AM
#6
kobra avatar

kobra

Black Belt

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

Re: Adding a module to a zen store

I am not trying to override a specific page as much as attach a custom page that I have already made. Does anyone have any suggestions on how to link in this custom page and possibly what I should look for in updating the code from this custom page to the upgraded Zen Cart version
Sorry, but your post is very vague???

What version was the old ZenCart?

What version is the new ZenCart?

What modules are you talking about?

Custom Page is coded how? html, php or??

If html and depending on the old version...look at the new Zencart and to ezpages...can be a link to this "CustomPage" or included as an ezpage.

7 Nov 2006, 10:56 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Adding a module to a zen store

Kobra's right. Kinda vague.

I'm not sure if you're talking about when you say "link to" these "additional pages".

The "About Us" contribution is a good example of creating additional core pages and the readme talks about how to add a link for them into the "information" sidebox.
However, since you didn't say "where" you want to "put" these links, nor what kind of content these additional pages contain, etc, it's hard to help you much more than this.

15 Nov 2006, 10:08 PM
#8
pvon34 avatar

pvon34

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Adding a module to a zen store

Ok, I am sorry I guess that was quite vague.

More specifically, do you know where the tID values and other values that you need to set such as main_page are located?

This would be very helpful.

Thank you again.

-Pat

15 Nov 2006, 11:31 PM
#9
kobra avatar

kobra

Black Belt

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

Re: Adding a module to a zen store

Ok, I am sorry I guess that was quite vague.

More specifically, do you know where the tID values and other values that you need to set such as main_page are located?
Again, a bit vague in the respect if "ID values and other values that you need to set"....Set for what???

If you are referring to setting a reference to the page(s)...when you load the page in the address bar of you browser is information similar to this and this is the reference to that page or in this instance "index sitemap"

http://www.your_domain.com/index.php?main_page=site_map

But if you are referring to div tags or table tags of items on your page...get FireFox and the web developers tools as this will allow you to determine each elements tag or value.

17 Nov 2006, 8:36 PM
#10
pvon34 avatar

pvon34

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Adding a module to a zen store

Thank you for the reply and sorry again about being vague, I guess I just don't know enough about the program to know what to be specific about yet.

The address bar reads:

...index.php?main_page=index&cPath=6&tID=5

now, does that mean that somehow the class "site_map" is connect to "index" and also, where would the possible values for main_page (i.e. index) be stored? Are they in a table, in the code...?

Also, I believe the "tID" refers to a template ID number and I'm not sure if that is something that one of our programmers built in or if that is part of the zencart package.

Thank you again, your answers are very helpful!

Regards,
Pat

18 Nov 2006, 6:20 AM
#11
kobra avatar

kobra

Black Belt

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

Re: Adding a module to a zen store

If you are getting "...index.php?main_page=index&cPath=6&tID=5" for your site map page...someone has hacked the default for this page and for what purpose only the individuals that performed this will know. It may be fully legitimate.

And Yes, "tID" is not a reference that I could find in any install of 1.3.6 or 1.3.5 as these are the only ones thsat I have left to view. I would offhand say that this is also some custom hack.

If this is working correctly, no intervention is required, if not I would get back with the programmers that performed this for clarification.

20 Nov 2006, 6:27 PM
#12
pvon34 avatar

pvon34

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Adding a module to a zen store

Ok, I have had a chance to dig a little deeper into the code and I found where I need to start making my modifications. Thank you again for all your help, it was very appreciated.

Regards,
Pat