Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mooving- Model- to diferent position


aozlanski

Recommended Posts

Posted

Hi,

 

How do I change the display of the Model?

I whould like to moove it to the bottom of the product_info page, and change the font size and color.

I tried mooving some of the code around, but seems like i'm breaking the code, and I get an error.

If anyone could help, I whould be verry greatfull.

 

Thanks,

Andrew

Posted

Hopefully I haven't changed this bit yet so you will have the same. In my script, model is tied to name so you have to seperate them.

 

in catalog/product_info.php, find:

 

    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_model = '<font size="10" color="#FFB903">' . $product_info['products_model'] . '</font>';
   } else {
     $products_model = ' ';
   }

 

I used   as the alternate when model is null so your table layout doesn't change if model is null. Change the font color/size above to whatever you want it to be.

 

Then you can place it anywhere you want using:

 

<?php echo $products_model; ?>

  • 11 months later...
Posted

I would like to move this to the end of the item description like this.

(Ref #: 1001)

 

Would anyone know how this can be done. Another thing I would like to do if possible is for a model number to generate automatically, is this possible?

 

thanks

elizabeth

  • 2 weeks later...

Archived

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

×
×
  • Create New...