Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need to display Zen-cart products inside a div

Need to display Zen-cart products inside a div

Locked

Views: 1,598

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
5 Dec 2009, 10:48 PM
#1
ryan_greenlife avatar

ryan_greenlife

New Zenner

Join Date:
Nov 2009
Location:
Boston, MA
Posts:
6
Plugin Contributions:
0

Need to display Zen-cart products inside a div

Hello,

I'm trying to display Zen-cart products inside a div. Is that possible? How would one go about doing that?

Or do I need to build my layout AROUND Zen-cart's layout?

I would really appreciate any help or advice you could offer. Thanks in advance!

5 Dec 2009, 11:29 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Need to display Zen-cart products inside a div

A little more information, please. Are you trying to use parts of Zencart inside another site? If so, it's not a good idea. Zencart is intended to be, and works best as, a stand-alone application.

6 Dec 2009, 1:09 AM
#3
ryan_greenlife avatar

ryan_greenlife

New Zenner

Join Date:
Nov 2009
Location:
Boston, MA
Posts:
6
Plugin Contributions:
0

Re: Need to display Zen-cart products inside a div

I'm basically just trying to have a page with a vertical nav on the left listing all of the product categories (I've created this nav), and I want it so when you click a category it loads and my vertical nav stays on the page, instead of going to JUST a zencart products page.

Do you know how I could do that?

6 Dec 2009, 2:30 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Need to display Zen-cart products inside a div

I might be able to do it (if I understand the question), but I wouldn't. Let's see a link to your site.

It's important to realize that Zencart can't be a back-end cart script for your existing site.

6 Dec 2009, 1:02 PM
#5
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Need to display Zen-cart products inside a div

Ryan Greenlife:

I'm basically just trying to have a page with a vertical nav on the left listing all of the product categories (I've created this nav), and I want it so when you click a category it loads and my vertical nav stays on the page, instead of going to JUST a zencart products page.

What you'vce just described is the normal behaviour of Zen Cart. So I'm as confused as stevesh. What exactly have you done so far? A link to your site would be very useful to us in helping you.

Rob

6 Dec 2009, 8:49 PM
#6
ryan_greenlife avatar

ryan_greenlife

New Zenner

Join Date:
Nov 2009
Location:
Boston, MA
Posts:
6
Plugin Contributions:
0

Re: Need to display Zen-cart products inside a div

This is the page with my menu on it:
http://www.greenlifegardensupply.com/indexcopy.html

As you can see, when you click on a category it leads you to a zen-cart-only page which displays the products. I need to get the menu I made into the zen-cart layout, so it is on the same page as the listed products.

6 Dec 2009, 9:05 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Need to display Zen-cart products inside a div

What do you think you're gaining by building your pages from scratch when you could achieve the identical appearance and functionality (and more) by modifying the Zen Cart template?

6 Dec 2009, 11:09 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Need to display Zen-cart products inside a div

That wouldn't be that difficult to recreate in Zencart.

One of the issues you may have doing it your way is the possibility of sessions problems when switching back and forth between Zencart and non-Zencart pages.

You would have to recreate the Categories sidebox by creating the categories and products in Zencart admin, and if you're going to do that, you may as well make the whole thing Zencart.

13 Dec 2009, 2:53 PM
#9
ryan_greenlife avatar

ryan_greenlife

New Zenner

Join Date:
Nov 2009
Location:
Boston, MA
Posts:
6
Plugin Contributions:
0

Re: Need to display Zen-cart products inside a div

I don't NEED to have it all in a new page that I created if that's not going to work. I guess my question, then, is how do I change the Zencart template to have my menu in it?

What file do I have to add my menu to?

13 Dec 2009, 3:10 PM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Need to display Zen-cart products inside a div

You don't. You'll need to stop thinking in terms of static HTML pages and start thinking about dynamic PHP pages that are built on the fly. (That's not a criticism - we all had to make that leap in the beginning.)

You'll create your categories in Zencart by adding them and your products in Admin - Catalog.