Jump to content

PrestaShop session into WordPress


Fusiondevs

Recommended Posts

Good afternoon everyone,. My name is Bruno and I'm a programmer from Buenos Aires, Argentina.

 

I am trying to develop a WordPress website that will include a PrestaShop installation within the /shop/ folder. I need the WP theme to show, inside the header, the username (or login link) and the shopping cart items... so basically what I need is to load the PS session within my WP theme.

 

I tried including 'shop/config/config.inc.php' file into my header without succes. I even created both FrontControllerCore and CartCore objects without any success either. Apparently, the session gets disconnected once I refresh my WP index. I tried the following scenario...

 

1. run WP index

2. run PS index

3. login into PS

4. refresh WP index

5. refresh PS index

 

Everytime i did this, my PS account was disconnected, giving me the idea that the PS PHP session is not being loaded within my WP index.

 

So my question is,. is there a way that I include my PS session within a WP theme? If so, what files do I have to include and what classes/controllers do I have to run?

 

Any help will be greatly appreciated!

 

Kind regards

Bruno Q.

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...