Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Product Model from product_info page


caspernova

Recommended Posts

Posted

Hi - I can't figure out how to remove the product model number from the product_info page. It's annoyingly displayed under the Product heading...

 

TI-83 Plus

[TI83PLUS]

^

how do i get rid of it? thanks

Posted
Hi - I can't figure out how to remove the product model number from the product_info page. It's annoyingly displayed under the Product heading...

 

TI-83 Plus

[TI83PLUS]

^

how do i get rid of it? thanks

 

go to the admin

click configuration

on the menu click product listing

you will see it in the options

change it to 0

Posted
go to the admin

click configuration

on the menu click product listing

you will see it in the options

change it to 0

 

No, that's not what i mean. Those are the product listings. I'm talking about the actual product page. It says the product name in big large letters, and right under that in brackets is the model number. I don't want it to show the model number.

 

 <td class="pageHeading" valign="top"><?php echo $products_name; ?></td>

 

that's the line that spits it out, rendering it like this

 

 <td class="pageHeading" valign="top">TI-86<br><span class="smallText">[TI86]</span></td>

 

Does anyone know how to edit "$products_name" so that it only shows the product name?

  • 5 months later...
Posted
No, that's not what i mean. Those are the product listings. I'm talking about the actual product page. It says the product name in big large letters, and right under that in brackets is the model number. I don't want it to show the model number.

 

 <td class="pageHeading" valign="top"><?php echo $products_name; ?></td>

 

that's the line that spits it out, rendering it like this

 

 <td class="pageHeading" valign="top">TI-86<br><span class="smallText">[TI86]</span></td>

 

Does anyone know how to edit "$products_name" so that it only shows the product name?

 

You can find it here (I was digging for it myself!)

http://www.oscommerce.com/forums/index.php?showtopic=205318

Posted
You can find it here (I was digging for it myself!)

http://www.oscommerce.com/forums/index.php?showtopic=205318

on product_info.php there is this line of code

 

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'];

 

if you dont want the model number change it to this

 

if (tep_not_null($product_info['products_model'])) {
    $products_name = $product_info['products_name'];
   } else {
     $products_name = $product_info['products_name'];

Archived

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

×
×
  • Create New...