Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple shopping Cart Usage › Change text on 'Add To Cart' button › Reply To: Change text on 'Add To Cart' button
January 8, 2010 at 5:46 am
#17079
Participant
You want to put the Price inside the button (as the text of the button)? If you want this then it should be doable quite easily. A button has the following code:
echo ‘<input type=”submit” value=”Add to Cart” />’;
the text inside the “value” is what gets displayed on the button so all you have to do is put the price there instead of the text “Add to Cart”. something like the following should achieve it:
echo ‘<input type=”submit” value=”‘.$price.'” />’;