Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

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


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?




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?



Link to comment
Share on other sites


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

  • Create New...