Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how show product_id, how pull this field


Eliana Alexandra

Recommended Posts

Posted

I need Populate (show) Product_id

 

I Found this online, but when i tried i dont get anything

 

 

<?php echo $products[$i]['id'] ; ?>

 

and also found this

 

<?php echo $products_array[$i]['id']; ?>

 

 

Thanks

Posted

Depends on where you want to call it, you have to look into the code in the file where you want to get it and use the code from there.

 

Ie. for instance if its in the product_info.php file , you can get it by:

<?php echo $_GET['products_id']; ?>

or if after the queries in the file

<?php echo $product_info['products_id']; ?>

 

In other files the code will be different.

Archived

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

×
×
  • Create New...