lupole Posted July 28, 2011 Posted July 28, 2011 I need to be able to insert the products_price into an input field without the $ sign, on the front end side of my store. I can easily insert the price, but with the $ sign as well. the code I am using is: <tr><td class="main"><?php echo tep_draw_input_field('products_price', $products_price); ?></td></tr>
germ Posted July 28, 2011 Posted July 28, 2011 Try: <tr><td class="main"><?php echo tep_draw_input_field('products_price', str_replace("$", "", $products_price)); ?></td></tr> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
lupole Posted July 28, 2011 Author Posted July 28, 2011 Try: <tr><td class="main"><?php echo tep_draw_input_field('products_price', str_replace("$", "", $products_price)); ?></td></tr> Thank you very much, worked perfectly. Larry
Recommended Posts
Archived
This topic is now archived and is closed to further replies.