Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

echo / print current products id


Sion.S

Recommended Posts

Posted

Hi all.

Can any one help me, i am trying to echo the current products ID, so that i can use it in a basic script.

I am currently using something similar with category id:

<?php $category_query = tep_db_query("select cd.categories_name from " .     TABLE_CATEGORIES_DESCRIPTION . " cd where cd.categories_id = '" . (int)$current_category_id .     "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
$filename = 'includes/descriptions/'.$current_category_id.'.php';
if (file_exists($filename)) {
   include( $filename ); ?>

I would basically like to do the same thing, but with product_id

Many thanks,
Sion.

Archived

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

×
×
  • Create New...