Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Reply To: Change text on 'Add To Cart' button

by

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
amin007
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.'” />’;

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ