Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to put a default zero i the weight textbox on categories.php?


vitalstrike82

Recommended Posts

Hi, i like to change the categories.php inside the admin folder where the textbox for products weight, i like it to have a zero inside the textbox as a default value.

 

May i know where can i add the value zero?

Thanks..

 

 

Hi please advise..

 

Thank you

Link to comment
Share on other sites

  • 1 month later...
tep_draw_input_field('products_weight', (($pInfo->products_weight == '')? $pInfo->products_weight : '0')

 

This should do the trick.

 

Hi i have try your method by replacing the orignal code

 

<?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_weight', $pInfo->products_weight); ?>

 

with this

 

<?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' .tep_draw_input_field('products_weight', (($pInfo->products_weight == '')? $pInfo->products_weight : '0'); ?>

 

when i run , its not working?

 

Can i have more guidance pls?

 

Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...