Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product price in input field


lupole

Recommended Posts

Posted

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>

Posted

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 >

Posted

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

Archived

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

×
×
  • Create New...