Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    1
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Replies: 3
    Last Post: 2 Jul 2013, 02:01 AM
  2. Using zen cart sessions outside of zen cart
    By rasher in forum General Questions
    Replies: 0
    Last Post: 29 Jul 2009, 08:22 PM
  3. My idea for accessing zen cart sessions outside of zen...
    By glenelkins in forum General Questions
    Replies: 25
    Last Post: 2 Oct 2008, 10:57 PM
  4. Replies: 1
    Last Post: 15 Mar 2008, 11:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg