Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Code


oracle101

Recommended Posts

Posted

Hi guys,

 

I was wondering if someone could let me know how I could add the word "Product Code: " to the front of the product code that displays for each product on the product page. eg [Product Code: 001]

 

Cheers and thanks to anyone who can help me out.

 

Mik

  • 2 weeks later...
Posted

do yu need it at the front?

 

you can already add the 'model' number on the categories page in admin when setting up the product... isn't that better?

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted
Hi guys,

 

I was wondering if someone could let me know how I could add the word "Product Code: " to the front of the product code that displays for each product on the product page. eg [Product Code: 001]

 

Cheers and thanks to anyone who can help me out.

 

Mik

On product_info.php find (in my file it starts at line 140) :

	if (tep_not_null($product_info['products_model'])) {
  $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';
} else {
  $products_name = $product_info['products_name'];
}

 

change to:

 

	if (tep_not_null($product_info['products_model'])) {
  $products_name = $product_info['products_name'] . '<br><span class="smallText">[Product Code: ' . $product_info['products_model'] . ']</span>';
} else {
  $products_name = $product_info['products_name'];
}

Where it says "Product Code: ", you can change it to suit your needs - i.e. I have "Re-Order Code: "

~Barbara~

Archived

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

×
×
  • Create New...