Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Determining Home (catalog) page Products - How?


soundguy

Recommended Posts

I've just built a site for a client (http://capefearnaturals.com/). The client wants to know how to set which items are visible on the home page.

 

I explained that the items where set by when they were added to the catalog. This is no good for my client. He wants to be able to set with determination the items visible and their order.

 

Any help is greatly apreciated.

 

osCommerce v2.2 RC2

Link to comment
Share on other sites

I've just built a site for a client (http://capefearnaturals.com/). The client wants to know how to set which items are visible on the home page.

 

I explained that the items where set by when they were added to the catalog. This is no good for my client. He wants to be able to set with determination the items visible and their order.

 

Any help is greatly apreciated.

 

osCommerce v2.2 RC2

I'm also looking for the same feature. But I also want to know is there a way to set the catalog page to be the home page (index.php)? Thanks in advance!

Link to comment
Share on other sites

Can anyone help please?

 

You can do a 301 redirect

 

adding something like:

 

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.yourdomain.com/index.php?cPath=21 [R=301,L]

 

to your .htaccess file in your store root

 

The above MIGHT not work so you'd probably have to do some further research on htaccess files

Link to comment
Share on other sites

The easiest way is to find this code in catalog/includes/application_top.php

// calculate category path
 if (isset($HTTP_GET_VARS['cPath'])) {
$cPath = $HTTP_GET_VARS['cPath'];
 } elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) {
$cPath = tep_get_product_path($HTTP_GET_VARS['products_id']);
 } else {
$cPath = '';

and change that last line to

	$cPath = '21';

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

The easiest way is to find this code in catalog/includes/application_top.php

// calculate category path
 if (isset($HTTP_GET_VARS['cPath'])) {
$cPath = $HTTP_GET_VARS['cPath'];
 } elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) {
$cPath = tep_get_product_path($HTTP_GET_VARS['products_id']);
 } else {
$cPath = '';

and change that last line to

	$cPath = '21';

Regards

Jim

Yeah, it works, thanks!!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...