Jump to content



Photo
- - - - -

Change buy now text


This topic has been archived. This means that you cannot reply to this topic.
10 replies to this topic

#1   llapeira

llapeira
  • Members
  • 6 posts

Posted 07 July 2011 - 16:51

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?

#2   pichou2005

pichou2005
  • Members
  • 64 posts

Posted 07 July 2011 - 20:24

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 !!



#3   DunWeb

DunWeb

    The Censored One

  • Members
  • 13,084 posts

Posted 07 July 2011 - 20:57

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
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

#4   llapeira

llapeira
  • Members
  • 6 posts

Posted 14 July 2011 - 16:33

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]

Edited by llapeira, 14 July 2011 - 16:39.


#5   llapeira

llapeira
  • Members
  • 6 posts

Posted 14 July 2011 - 19:51

I already found the way to do it.

#6   newtech

newtech
  • Members
  • 495 posts

Posted 30 July 2011 - 14:22

I am using osCommerce v2.3.1. Where do you go to change the size of the Buy Now button?

#7   satish

satish
  • Members
  • 5,350 posts

Posted 31 July 2011 - 12:01

Cant be done Via admin.

Satish
Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

Check My About US For who am I and what My company does.

#8   newtech

newtech
  • Members
  • 495 posts

Posted 31 July 2011 - 16:03

Cant be done Via admin.

Satish

strange-because in the midst of figuring out the various css styles so I can change fon sizes for various text, my BuyNow buttons are much larger than they were before. Nothign else has changed so how could hte buttons get so much larger. They are not graphics so something is changing the size of the buttons.

#9 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,281 posts

Posted 31 July 2011 - 16:43

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

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#10   newtech

newtech
  • Members
  • 495 posts

Posted 16 August 2011 - 10:56

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.

#11 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,281 posts

Posted 16 August 2011 - 16:43

The code for those buttons is in catalog/includes/modules/product_listing.php. The code for the buttons looks like this:

            $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 Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated