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

Customizing "Buy Now" button text

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Customizing "Buy Now" button text

Tagged: button, buttons, buy now button text

  • This topic has 2 replies, 2 voices, and was last updated 13 years, 6 months ago by boagworld.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 8, 2011 at 6:01 pm #4714
    boagworld
    Member

    I know you can upload a button image but is there a way to customise the text on a button? Instead of having just the word “Buy Now” I would prefer “Buy Now (£9.95)” or even a customised version per button.

    This forum post kind of helps…

    https://support.tipsandtricks-hq.com/forums/topic/change-text-on-add-to-cart-button

    But the file structure of the plugin has obviously changed since it was posted and I cannot see how to do it now.

    November 8, 2011 at 11:11 pm #38273
    admin
    Keymaster

    If you just want to change the text of the button then this post will help:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin

    However, if you are looking to add the price amount to the “Buy Now” button text programmatically you will need to tweak the code.

    Open the “eStore_misc_functions.php” file and search for the following line of code:

    $button_type .= '<input type="submit" class="eStore_buy_now_button" value="'.WP_ESTORE_BUY_NOW.'" />';

    Once you find it replace it with the following code:

    $custom_text = 'Buy Now (£'.$ret_product->price.')';
    $button_type .= '<input type="submit" class="eStore_buy_now_button" value="'.$custom_text.'" />';

    November 9, 2011 at 5:07 pm #38274
    boagworld
    Member

    Thanks for the help.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

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