Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product info if statement


Guest

Recommended Posts

Posted

Previously i got this coded:

 

         <?     if (strlen($cPath)>0 && substr($cPath, 0, 2)=='28'){  ?>
            <tr>
               <td>
                      <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
                        <tr align=center class="infoBoxContents">
                          <td  valign=top>
                               <?=tep_image(DIR_WS_IMAGES . "buy_now.gif", "swatches", 100, 40);?>
                           </td>
                       </tr>
                        <tr align=center class="infoBoxContents">
                          <td valign=top>
                               <?php echo TEXT_SWATCHES;?>
                           </td>
                       </tr>
                     </table>
                 </td>
             </tr>
             <tr>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
             </tr>

 

This code enabled a box to appear for cpath 28, and it will have text and a picture n it. Can anyone help me so I can have a box kind of system. So there will be different if statements so different pictures and different text appears for that category. Like if I want some text to show up for cpath 21_23, and different text to cpath 94_97. I do not know how to code it so it would help if you left a hint.

 

Thanks

Danny

Archived

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

×
×
  • Create New...