Forums / General Questions / Sideboxes and loading class definitions outside of Zen Cart

Sideboxes and loading class definitions outside of Zen Cart

Locked

Views: 2,228

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
3 Jan 2007, 2:46 PM
#1
jasonking avatar

jasonking

New Zenner

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

Sideboxes and loading class definitions outside of Zen Cart

I am using Zen Cart to handle the ecommerce and user management functions of a website I am building for a client. It is fairly well integrated already but I keep running into a problem that I have so far been unable to solve.

I would like to be able to display sideboxes from Zen Cart in other areas of the website. Specifically I would like to keep the Shopping Cart Sidebox available to users as they navigate the rest of the site. As it stands now, both the custom application that I have developed and Zen Cart reside under the same domain in different directories and share the same PHP session.

My current line of thinking is to load the class definition for the "cart" object (cart is how it appears in the session array) so that I can call the methods in the cart object. Right now without knowing how to accomplish this I get the __PHP_Incomplete_Class Object message when viewing the session vars from the non Zen Cart portion of the site.

Can anyone tell me how to load the Class definition necessary to call the shoppingCart methods from a different directory under the same domain. I realize this is not going to necessarily be a preferred method of handling the situation and am prepared for a little hackery to accomplish it but would greatly appreciate help.

29 Jan 2007, 5:20 PM
#2
burtjesus avatar

burtjesus

New Zenner

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

Re: Sideboxes and loading class definitions outside of Zen Cart

Try Dr. Byte's 'Show a sidebox on external page' mod in the downloads section.


Steve