I am working on setting a donation page for a non profit organization.
I want to change the text that says "buy now" by "donate now" ...
I went to index.php but I couldn't find the exact line ...
Somebody can help?
Latest News: (loading..)
Change buy now text
Started by llapeira, Jul 07 2011 04:51 PM
10 replies to this topic
#1
Posted 07 July 2011 - 04:51 PM
#2
Posted 07 July 2011 - 08:24 PM
Hi,
You talk about the "Buy Now" button ?
If this is right, you may replace or edit the button. I recommend to rename the original button and to use a copy for editing.
Don't forget that if you simply replace a particular button, the new one will be displayed everywhere in place of the original.
The buttons are located at: /includes/languages/english/images/buttons/
ALWAYS do a Backup BEFORE Modifying !!
You talk about the "Buy Now" button ?
If this is right, you may replace or edit the button. I recommend to rename the original button and to use a copy for editing.
Don't forget that if you simply replace a particular button, the new one will be displayed everywhere in place of the original.
The buttons are located at: /includes/languages/english/images/buttons/
ALWAYS do a Backup BEFORE Modifying !!
#3 ONLINE
Posted 07 July 2011 - 08:57 PM
Luis,
Since you have just posted your first question in this forum, I am going to assume you are using osCommerce v2.3.1. If that is the case, then the information Guy gave you is incorrect. To change the language for the buttons, open the /includes/languages/english.php and look for this line:
define('IMAGE_BUTTON_BUY_NOW', 'Buy Now');
Change it to suit your needs.
Chris
Since you have just posted your first question in this forum, I am going to assume you are using osCommerce v2.3.1. If that is the case, then the information Guy gave you is incorrect. To change the language for the buttons, open the /includes/languages/english.php and look for this line:
define('IMAGE_BUTTON_BUY_NOW', 'Buy Now');
Change it to suit your needs.
Chris
#4
Posted 14 July 2011 - 04:33 PM
Chris,
Thanks for your info. It worked!
I have two more questions about editing text, not sure if I can post it here too. I will, but if it is not allowed by forum rules, I will create a new thread.
In the same buy now text section, on top I have the following table headers:
Product Name+ Price Buy Now
How can I change that?
Thanks Chris,
Chris
[/quote]
Thanks for your info. It worked!
I have two more questions about editing text, not sure if I can post it here too. I will, but if it is not allowed by forum rules, I will create a new thread.
In the same buy now text section, on top I have the following table headers:
Product Name+ Price Buy Now
How can I change that?
Thanks Chris,
Chris
[/quote]
Edited by llapeira, 14 July 2011 - 04:39 PM.
#5
Posted 14 July 2011 - 07:51 PM
I already found the way to do it.
#6
Posted 30 July 2011 - 02:22 PM
I am using osCommerce v2.3.1. Where do you go to change the size of the Buy Now button?
#8
Posted 31 July 2011 - 04:03 PM
satish, on 31 July 2011 - 12:01 PM, said:
Cant be done Via admin.
Satish
Satish
#9 ONLINE
Posted 31 July 2011 - 04:43 PM
The buttons are created by Javascript and CSS, so they can be affected by the surrounding styles. For example, changing the columns that are displayed on the Category pages will change the width of the Buy Now column, thereby changing the width of the Buy Now buttons.
Other than that effect, Satish is right: the buttons can't be changed in the Admin. You will need to edit the code on the pages to change them. Since the buttons appear on multiple pages and the code is different on each page, you will need to tell us where you want to change the button size so we can give you the code.
Regards
Jim
Other than that effect, Satish is right: the buttons can't be changed in the Admin. You will need to edit the code on the pages to change them. Since the buttons appear on multiple pages and the code is different on each page, you will need to tell us where you want to change the button size so we can give you the code.
Regards
Jim
My Addons
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#10
Posted 16 August 2011 - 10:56 AM
When you click on a category and there is a listing of products
When you click on a manufacture and there is a listing of products.
When you click on a manufacture and there is a listing of products.
#11 ONLINE
Posted 16 August 2011 - 04:43 PM
The code for those buttons is in catalog/includes/modules/product_listing.php. The code for the buttons looks like this:
Regards
Jim
$prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>';
To make the button smaller, change it to this: $prod_list_contents .= ' <td align="center"><span style="font-size:0.8em;">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</span></td>';
To change the size to something other than my default (80% of normal) you need to change the font-size:0.8em;.Regards
Jim
My Addons
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support









