Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is this possible


Digerdoo

Recommended Posts

Posted

Is there any possibilities put thatway if index.php is normal and then user click some category where product is listed it not show index.php?cpath=something

 

it goes straight new file so products are listed in new file not index.php.. so you can put example different column_left there where products are listed than index.php or can i make these differenties in index.php so in mainpage it show example column_left or right but not ther where gategories is listing. Can someone help ?

 

:blush:

Posted
Is there any possibilities put thatway if index.php is normal and then user click some category where product is listed it not show index.php?cpath=something

 

it goes straight new file so products are listed in new file not index.php.. so you can put example different column_left there where products are listed than index.php or can i make these differenties in index.php so in mainpage it show example column_left or right but not ther where gategories is listing. Can someone help ?

 

:blush:

 

 

You can.

 

Its not simple though...

 

In your includes/column_left.../right you can do things like this:

 

	if (basename($PHP_SELF) == FILENAME_DEFAULT) {
	if (isset($_GET['cPath'])) {
		include(DIR_WS_BOXES . 'categories.php');
		//include(DIR_WS_BOXES . 'search.php');
	}
	else
	{
	include(DIR_WS_BOXES . 'default.php');
	//include(DIR_WS_BOXES . 'powered_by.php');
	}
}
if (basename($PHP_SELF) == 'kalenders.php') {
	include(DIR_WS_BOXES . 'categories.php');
	//include(DIR_WS_BOXES . 'search.php');
}

 

So checking for the url, and if its index.php use a box... when its the products it wil show the categories.. you prob wont be able to copy paste my code, but you can use it as a guide...

Even in this dark place, yes, I am afraid of my own shadow.

 

 

 

Contributions | KnowledgeBase | osCommerce 2.2 pdf

Posted
You can.

 

Its not simple though...

 

In your includes/column_left.../right you can do things like this:

 

	if (basename($PHP_SELF) == FILENAME_DEFAULT) {
	if (isset($_GET['cPath'])) {
		include(DIR_WS_BOXES . 'categories.php');
		//include(DIR_WS_BOXES . 'search.php');
	}
	else
	{
	include(DIR_WS_BOXES . 'default.php');
	//include(DIR_WS_BOXES . 'powered_by.php');
	}
}
if (basename($PHP_SELF) == 'kalenders.php') {
	include(DIR_WS_BOXES . 'categories.php');
	//include(DIR_WS_BOXES . 'search.php');
}

 

So checking for the url, and if its index.php use a box... when its the products it wil show the categories.. you prob wont be able to copy paste my code, but you can use it as a guide...

 

Hi

 

Can i put this code in index.php if i'm not using column_left / right files at all..

 

 

:blush:

Posted
Hi

 

Can i put this code in index.php if i'm not using column_left / right files at all..

:blush:

 

 

Hello there

 

I don't use column_left boxes at all so i want put all in index.php and i try to do that way if i put three cell in index.php and then user choose some category so you can put there new three or more cells..and it not show those other cells what is listed in index.php before so how i can do this i want put that way that index.php=cpath is listed different cells so i can put something different there.. can i example put this product listing in categories in new file someway ?

 

:blush:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...