Jump to content
Latest News: (loading..)
Sign in to follow this  
vikram.raste

A Very Difficult Question on Oscommerce Layout

Recommended Posts

Dear Friends,

 

I need to have 2 Layouts for my oscommerce store

 

First layout : Will be for all the Cart Pages

 

Second layout : would be applied for the pages once logged in and only for the following pages

 

a) Login page

B) Delivery Address page

c) Payment Details page

d) Order Summary page

e) Thank you page.

 

IS It Possible do you think ? If Yes any Contribs / mods ?

 

Please Help !!!

Share this post


Link to post
Share on other sites
Dear Friends,

 

I need to have 2 Layouts for my oscommerce store

 

First layout : Will be for all the Cart Pages

 

Second layout : would be applied for the pages once logged in and only for the following pages

 

a) Login page

B) Delivery Address page

c) Payment Details page

d) Order Summary page

e) Thank you page.

 

IS It Possible do you think ? If Yes any Contribs / mods ?

 

Please Help !!!

Why on Earth would you contemplate such an undertaking? The cart itself does what you want.

 

You want to split the cart in half for no apparent reason?


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

Its because the Designer wants it .Do you have any solution for the problem ?

 

Why on Earth would you contemplate such an undertaking? The cart itself does what you want.

 

You want to split the cart in half for no apparent reason?

Share this post


Link to post
Share on other sites

Interesting Question. Here is a solution.

 

For each of the pages that you wish to have a different style associated if a user is logged in, change the line of code from this

<link rel="stylesheet" type="text/css" href="stylesheet.css">

to this

<link rel="stylesheet" type="text/css" href="<?php echo (tep_session_is_registered('customer_id')) ? "otherstyle.css" : "stylesheet.css"; ?>">

 

You will then create a second stylesheet called "otherstyle.css" which will have the CSS for if the user is logged in.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites
Its because the Designer wants it .Do you have any solution for the problem ?

 

I think the STS contribution will allow you to do this. I have this contribution installed and I have all the pages looking the same but it allows you to make templates for specific pages.

 

Hope it works out for you!

Share this post


Link to post
Share on other sites

Thanks for the answer .. that will help .

 

But what about the image / Graphics ? Shall i create a different HEADER.php or something ?

 

Means 2 sets of almost all the pages ?

 

Thanks for your reply in advance.

 

Interesting Question. Here is a solution.

 

For each of the pages that you wish to have a different style associated if a user is logged in, change the line of code from this

<link rel="stylesheet" type="text/css" href="stylesheet.css">

to this

<link rel="stylesheet" type="text/css" href="<?php echo (tep_session_is_registered('customer_id')) ? "otherstyle.css" : "stylesheet.css"; ?>">

 

You will then create a second stylesheet called "otherstyle.css" which will have the CSS for if the user is logged in.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×