Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Defining $current_category_id


ant_robbo

Recommended Posts

Hi,

 

I'm relatively new to PHP but have been using OScommerec for a while. So, apologies if this is a confusing question.

 

Can I hardcode a definition for the variable $current_category_id on the index.php page?

 

I was hoping to create landing pages by copying and re-naming the index.php page to 'category_name.php' and then hard coding the variable $current_category_id at the very top of the page. My code looks like this:

 

<? php

 

require('includes/application_top.php');

 

$current_category_id = 51;

 

 

I'm not getting the results I was expecting. Do I need to define this somewhere else? Or is there somewhere to hardcode the cPath. Or is there a contribution out there that could help me. (Ultimate SEO URL's are not working on my setup)

 

 

Thanks for any guidance you can give me

 

Anthony

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...