Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to avoid the main page?

How to avoid the main page?

Locked

Views: 1,589

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
28 Dec 2007, 5:40 AM
#1
sagivle1 avatar

sagivle1

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

How to avoid the main page?

hey guys,
i have two websites and i want to connect the first one (html files) that includes the products pics and about to my zen cart ,
so that if i click on a button from the old site ,
i will go directly to the zen cart site with the item picture and the price as if i clicked on it from the main page of the zen cart.
i made the html site so it will call directly to the product page to add to cart but it taking me directly to the main page of the zen cart .
i think its a session problem , please help guys... what can i do?:dontgetit

28 Dec 2007, 5:48 AM
#2
kobra avatar

kobra

Black Belt

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

Re: How to avoid the main page?

Zen Cart is not built to be used only as an "add to cart/buy now" tool -- that is not how it functions.

It is meant to be styled to closely match your html site and then replace/become your main portal.

It also allows product to be changed/managed in a dynamic manner so that you do not have to edit the many pages involved in a html site.

28 Dec 2007, 11:57 AM
#3
sagivle1 avatar

sagivle1

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

Re: How to avoid the main page?

tnx alot kobra...
anyway , if someone have any ideas how to make a connection between the two websites , it will help alot... :)

29 Dec 2007, 7:33 AM
#4
kobra avatar

kobra

Black Belt

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

Re: How to avoid the main page?

Zen Cart is not intended to be modular where you can use only those things you want - it is all or nothing and your problem is a sessions issue

29 Dec 2007, 10:21 AM
#5
sagivle1 avatar

sagivle1

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

Re: How to avoid the main page?

tnx for replying , i know its a session issue , so i think maybe i need to create new php page that will connect between the html site and zen cart site , so that the new php page will create the session and redirect to the zen cart specific item that was chosen in the html page. do i have to make only the language session?

29 Dec 2007, 3:24 PM
#6
sagivle1 avatar

sagivle1

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

Re: How to avoid the main page?

thats it , i solved it and it workes...
the solution to this issue is to send the html page to a php page that will make
a Session for the user and redirect the user to the wanted page.

29 Dec 2007, 3:40 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to avoid the main page?

Congratulations! You have now given yourself two websites to maintain and synchronize to do the job of one site. :-)

The session linkage ability is a good thing for applications where it is really warranted, though. Perhaps you could share a bit more detail of how that is done? Will it keep the session past the 24-minute timeout period when away from Zen Cart?

14 Jun 2008, 10:51 PM
#8
sagivle1 avatar

sagivle1

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

Re: How to avoid the main page?

gjh42:

Congratulations! You have now given yourself two websites to maintain and synchronize to do the job of one site. :-)

The session linkage ability is a good thing for applications where it is really warranted, though. Perhaps you could share a bit more detail of how that is done? Will it keep the session past the 24-minute timeout period when away from Zen Cart?

well glenn , i made it by demand, i didn't have no choice so i had to find a solution to that issue , and connecting two websites.
the solution is to call from the html page to a php page that will stay in the zen cart folder, it will create the session for you , just like the session creation in the index.php file of the zen cart , so it looks familiar to the system , and it will not create a double session , because a session has already been made.
thats it.