Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php guru: you can tell me


shahed

Recommended Posts

Hello I came across this problem . I'm using model field for some other purpose .. so on product_info.php , I have this code

<?php

   if ($product_info_values['products_model'] ==2 ) 

{ 

 ?>

 <img src="http://xxx.vom/images/cd.gif">

 <?

  }

  elseif ($product_info_values['products_model'] ==1 ) { 

  ?>

  

  <img src="http://xxx.vom/images/dvd.gif">

  

  <?

  }

  elseif ($product_info_values['products_model'] ==3 ) { 

  ?>

  

  <img src="http://xxx.vom/images/vhs.gif"><br>

  ** <b>NTSC FORMATTED, Only for USA/Canada </b>

  

  <?

  }

  elseif ($product_info_values['products_model'] ==4 ) { 

  ?>



  <img src="http://xxx.com/images/vcd.gif"><br>

That works fine for me .. It displays the image on product page. Now on admin order.php I want to do same ..

here is the code I gotta change :

echo  '<td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "n" .

          '                

Can someone tell me how can I write that if statement here..

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...