Zen Cart Logo
Forums / General Questions / Include Products on other web pages

Include Products on other web pages

Locked

Views: 1,204

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 Nov 2006, 6:30 PM
#1
akreation avatar

akreation

New Zenner

Join Date:
Nov 2006
Posts:
6
Plugin Contributions:
0

Include Products on other web pages

is it possible to include a product on other pages. i have pages already created and would like to add the product to the bottom, so people can add products from my store to their cart from other web sites.

16 Nov 2006, 10:25 AM
#2
akreation avatar

akreation

New Zenner

Join Date:
Nov 2006
Posts:
6
Plugin Contributions:
0

Re: Include Products on other web pages

maybe this question was unclear last time, i will rephrase.

I am wanting to include a product from my zen cart store on a totally different web site.

Example::

<?php include("zencart/single_product.php"); ?>

But i do not want the entire zen cart page to appear, only one product, without the zen cart template.

It seems like there should be a page included in the zen cart product which would accomodate this feature. It would just be one page with only the product displayed. Then this page could be included on any site.

The reason i am requesting help for this is because i have a web page which describes a product throroughly and i would like to have the zen cart product included on this page.

I may try to copy the product index page and the delete everything except for the product itself. Then include this file on my other pages.

16 Nov 2006, 2:47 PM
#4
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: Include Products on other web pages

Assuming the other site runs on the same server as your Zen site, you should be able to easily yank out the necessary pieces from the InitSystem, connect to the DB, and do whatever the hell you want.

If the site doesn't run on your server, it would just require further modifications to the DB connection classes. In that case I would set up a new MySQL account for that particular purposes, and restrict it to read access, and then only on the necessary tables.