Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

(Feature Request) Default catagory for main page.


Guest

Recommended Posts

Is there a way or mod where you can set a default catagory instead of the all random products in all catagories?

 

This what i mean:

 

Show:

 

Movies

Action

Comedy

Drama

Horror

 

Toys

Clothing

Electronics

Books

 

Thanks

Link to comment
Share on other sites

Is there a way you can display a default catagory at the start page instead of its displaying the "top" or main default.php?

 

This what i mean:

 

Show a default catagory:

http://www.oscommerce.com/osCommerce22ms1/...ult.php?cPath=1

 

Top/main page with products from all catagories:

http://www.oscommerce.com/osCommerce22ms1/default.php

 

What a i want is a default catagory shown at the main page level instead of products from all catagories showing unless the use chooses to.

Link to comment
Share on other sites

Not sure if this is what you are looking for but stick this at the top of default.php beneath the applications_top.php line:

 

if ($current_category_id==0) {

 $current_category_id=3;

 $cPath=3;

}

Link to comment
Share on other sites

Is there a way i can change the column_right.php & column_left.php in default to show something different (like from column_right.php to column_right2.php) when in the top and catagory level?

 

For example this is what i mean:

 

If default.php or main/top then show column_right2.php

 

If default.php is in a catagory then show column_right.php

 

Ive tried messin around with it but i dunno.

 

<?php If $new_products_category_id = $current_category_id; include(DIR_WS_INCLUDES . 'column_right.php');

{else } 

include(DIR_WS_INCLUDES . 'column_right2.php');

?>

I know this looks horrid cus my php skills sucks.

Link to comment
Share on other sites

Tried codes like:

 

<!-- right_navigation //-->

<?php if $current_category_id==0;

        include(DIR_WS_INCLUDES . 'column_right.php');

{else}

        include(DIR_WS_INCLUDES . 'column_right2.php');

?>

<!-- right_navigation_eof //-->

 

Any ideas?

Link to comment
Share on other sites

You might try this instead:

 

<!-- right_navigation //-->

<?php

if ($current_category_id==0) {

        include(DIR_WS_INCLUDES . 'column_right.php');

} else {

        include(DIR_WS_INCLUDES . 'column_right2.php');

}

?>

<!-- right_navigation_eof //-->

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...