Forums / Templates, Stylesheets, Page Layout / Plugging Zencart into an existing website

Plugging Zencart into an existing website

Locked

Views: 3,033

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
18 Apr 2008, 9:27 PM
#1
dejavu avatar

dejavu

New Zenner

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

Plugging Zencart into an existing website

I'm trying to plug Zencart into an existing website in an iframe.

This is all fine and dandy until someone hits the reload page button, then where back on the home page of the store.

So I thought I'd modify the template tpl_main_page.php onLoad button to modify the parent to capture the actual current zencart url. This isn't totally thought through. I'd hate to use a cookie to keep track of the url, but without reloading twice, once for the new zencart url and one for the new website url containing the zencart url.

On the first Load, I'm able to view an alert of the paren'ts iframe src value.

But, once I click any link in the store, I get access denied.

Does anyone know why accessing any url in the cart other than http://www.yoursite.com/store would give this?

18 Apr 2008, 9:36 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Plugging Zencart into an existing website

For a bunch of reaso Zen Cart does not function in a frame(ugg!!):yuck:

Zen Cart is meant to be your web site...it can be in a dir and you can have your landing page at the site root but not in a frame

Zen-Venom Get Bitten

18 Apr 2008, 9:44 PM
#3
dejavu avatar

dejavu

New Zenner

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

Re: Plugging Zencart into an existing website

Well it seems like it should be feasible. It totally working in an iframe except the reload button.

18 Apr 2008, 9:54 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Plugging Zencart into an existing website

See this thread and post #2 by Kim
http://www.zen-cart.com/forum/showthread.php?t=94475

Zen-Venom Get Bitten

19 Apr 2008, 3:06 PM
#5
dejavu avatar

dejavu

New Zenner

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

Re: Plugging Zencart into an existing website

So, I should open zencart in a seperate window? That's not the worst idea for my client who has already done his own website and wants to maintain it seperately. But, what if users have pop-ups disabled? I have to have them disable that?

19 Apr 2008, 4:00 PM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Plugging Zencart into an existing website

If you search the Forum for 'easy embed' you'll find some threads about it and a download link.

It is a template system that allows one to use their existing Web design and incorporate Zen Cart wherever they want. Takes a bit of thinking to get it working right but once you do, the rest is a breeze. :wink:

The learning is in the doing.

Potent Products

24 Apr 2008, 12:37 PM
#7
dejavu avatar

dejavu

New Zenner

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

Re: Plugging Zencart into an existing website

I've got it working. I had to do some tricky database stuff to avoid cookies and frame resizing stuff to make the store works with reloading, etc. In the future, I may do a straight ZenCart, but in this case the customer wanted his own website in tact, so ... I aim to please.

24 Apr 2008, 12:57 PM
#8
kobra avatar

kobra

Black Belt

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

Re: Plugging Zencart into an existing website

I've got it working. I had to do some tricky database stuff to avoid cookies and frame resizing stuff to make the store works with reloading
If using Zen Cart in a frame you had better test what ever payment methods you intend on using as most will not work

Zen-Venom Get Bitten

26 Apr 2008, 6:11 PM
#9
dejavu avatar

dejavu

New Zenner

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

Re: Plugging Zencart into an existing website

For the last this one, paypal and money orders work fine.

For the current one, I'm working on getting Quick Books Merchant Service working.

That's kinda weird. There must be some kind of work around on that. I'll see if I can't figure it out.

I'll see if my next client wants a straight store.

26 Apr 2008, 6:27 PM
#10
dejavu avatar

dejavu

New Zenner

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

Re: Plugging Zencart into an existing website

Website Rob,

That sounds like a good idea, but I'm having difficulty deciphering that post.

Can you take a look at my post there and see if you can add some insight.

Thanks.

26 Apr 2008, 6:33 PM
#11
dejavu avatar

dejavu

New Zenner

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

Re: Plugging Zencart into an existing website

Website Rob,

Thank you.

I didn't realize there were more pages to the post. I just got a download that I'm about to check out.

I think I'm going to do my current project this way.

Much appreciated.

27 Apr 2008, 5:00 PM
#12
dejavu avatar

dejavu

New Zenner

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

Re: Plugging Zencart into an existing website

THe easy embed stuff is working for me, but that is a website designed with the index on every page.

On my other website, all pages are inserted into iframes and the index only exists on the index page for me, so easy embed wasn't consistent with that design.