Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2010
    Posts
    39
    Plugin Contributions
    0

    Default Changing add to cart button

    a while ago I changed the button "add to cart" on this page (I'm just lost the name of this page). They are both in new products, category and product listing. However, I do not remember how I got this done.

    I work with two languages ​​in my shop (Dutch and English) and i'm not been able to get change this button in English.

    Anyone have a tip so that i can change the button?

    If i look on the source code the the code i have in dutch:

    Code:
    <form name="multiple_products_cart_quantity" action="http://www.nailpolishfashion.nl/index.php?main_page=index&amp;cPath=2_240&amp;language=nl&amp;sort=20a&amp;action=multiple_products_add_product" method="post" enctype="multipart/form-data"><div id="productListing">
    <div class="buttonRow forward"><input type="image" src="includes/templates/simple_zen/buttons/dutch/button_add_selected.gif" alt="Geselecteerde artikelen toevoegen aan wagentje" title=" Geselecteerde artikelen toevoegen aan wagentje " id="submit1" name="submit1" /></div>
    <br class="clearBoth" />
    In english:

    Code:
    <form name="multiple_products_cart_quantity" action="http://www.nailpolishfashion.nl/index.php?main_page=index&amp;cPath=2_240&amp;sort=20a&amp;action=multiple_products_add_product" method="post" enctype="multipart/form-data"><div id="productListing">
    <div class="buttonRow forward"><input class="cssButton button_add_selected" onmouseover="this.className='cssButtonHover button_add_selected button_add_selectedHover'" onmouseout="this.className='cssButton button_add_selected'" type="submit" value="Add Selected Products to Cart" style="width: 188px;" /></div>
    <br class="clearBoth" />
    Last edited by mdo82; 15 Nov 2013 at 03:30 PM.

  2. #2
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Changing add to cart button

    Quote Originally Posted by mdo82 View Post
    a while ago I changed the button "add to cart" on this page (I'm just lost the name of this page). They are both in new products, category and product listing. However, I do not remember how I got this done.

    I work with two languages ​​in my shop (Dutch and English) and i'm not been able to get change this button in English.

    Anyone have a tip so that i can change the button?

    If i look on the source code the the code i have in dutch:

    Code:
    <form name="multiple_products_cart_quantity" action="http://www.nailpolishfashion.nl/index.php?main_page=index&cPath=2_240&language=nl&sort=20a&action=multiple_products_add_product" method="post" enctype="multipart/form-data"><div id="productListing">
    <div class="buttonRow forward"><input type="image" src="includes/templates/simple_zen/buttons/dutch/button_add_selected.gif" alt="Geselecteerde artikelen toevoegen aan wagentje" title=" Geselecteerde artikelen toevoegen aan wagentje " id="submit1" name="submit1" /></div>
    <br class="clearBoth" />
    In english:

    Code:
    <form name="multiple_products_cart_quantity" action="http://www.nailpolishfashion.nl/index.php?main_page=index&cPath=2_240&sort=20a&action=multiple_products_add_product" method="post" enctype="multipart/form-data"><div id="productListing">
    <div class="buttonRow forward"><input class="cssButton button_add_selected" onmouseover="this.className='cssButtonHover button_add_selected button_add_selectedHover'" onmouseout="this.className='cssButton button_add_selected'" type="submit" value="Add Selected Products to Cart" style="width: 188px;" /></div>
    <br class="clearBoth" />
    If you want to change the text of the button you can create an override for includes/languages/your_language/override/button_names.php and edit the button text in that file.

    Thanks,

    Anne

  3. #3
    Join Date
    Apr 2010
    Posts
    39
    Plugin Contributions
    0

    Default Re: Changing add to cart button

    Quote Originally Posted by picaflor-azul View Post
    If you want to change the text of the button you can create an override for includes/languages/your_language/override/button_names.php and edit the button text in that file.

    Thanks,

    Anne


    Thanks for your reply.

    I have the follow text in my includes/languages/english/override/button_names.php

    Code:
    define('BUTTON_IMAGE_ADD_TO_CART', 'button_add_to_cart.gif');
    define('BUTTON_IMAGE_ADD_PRODUCTS_TO_CART','button_add_selected.gif');
    I think that i have change the code somewhere, because the source code of the dutch page is

    Code:
    <div class="buttonRow forward"><input type="image" src="
    in english is this:
    Code:
    <div class="buttonRow forward"><input class="cssButton button_add_selected
    I have tried to find this with the developer toolkit, but can not find it

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Changing add to cart button

    Quote Originally Posted by mdo82 View Post
    a while ago I changed the button "add to cart" on this page (I'm just lost the name of this page). They are both in new products, category and product listing. However, I do not remember how I got this done.

    I work with two languages ​​in my shop (Dutch and English) and i'm not been able to get change this button in English.

    Anyone have a tip so that i can change the button?

    If i look on the source code the the code i have in dutch:

    Code:
    <form name="multiple_products_cart_quantity" action="http://www.nailpolishfashion.nl/index.php?main_page=index&amp;cPath=2_240&amp;language=nl&amp;sort=20a&amp;action=multiple_products_add_product" method="post" enctype="multipart/form-data"><div id="productListing">
    <div class="buttonRow forward"><input type="image" src="includes/templates/simple_zen/buttons/dutch/button_add_selected.gif" alt="Geselecteerde artikelen toevoegen aan wagentje" title=" Geselecteerde artikelen toevoegen aan wagentje " id="submit1" name="submit1" /></div>
    <br class="clearBoth" />
    In english:

    Code:
    <form name="multiple_products_cart_quantity" action="http://www.nailpolishfashion.nl/index.php?main_page=index&amp;cPath=2_240&amp;sort=20a&amp;action=multiple_products_add_product" method="post" enctype="multipart/form-data"><div id="productListing">
    <div class="buttonRow forward"><input class="cssButton button_add_selected" onmouseover="this.className='cssButtonHover button_add_selected button_add_selectedHover'" onmouseout="this.className='cssButton button_add_selected'" type="submit" value="Add Selected Products to Cart" style="width: 188px;" /></div>
    <br class="clearBoth" />
    It appears that in Dutch the button is a shopping cart icon while in English it is a CSS button.. correct???

    First copy the button image includes/templates/simple_zen/buttons/dutch/button_add_selected.gif to includes/templates/simple_zen/buttons/english/

    Then to force the graphic button versus the CSS button to show:
    Quote Originally Posted by lat9 View Post
    Since the button is a submit-type button, the default button-processing won't call the CSS button function if the button's alt-text is longer than 30 characters. So you can just change the define (in /includes/languages/english/YOUR_TEMPLATE/button_names.php) to have move than 30 characters and the button image will be loaded instead!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    Apr 2010
    Posts
    39
    Plugin Contributions
    0

    Default Re: Changing add to cart button

    Quote Originally Posted by DivaVocals View Post
    It appears that in Dutch the button is a shopping cart icon while in English it is a CSS button.. correct???

    First copy the button image includes/templates/simple_zen/buttons/dutch/button_add_selected.gif to includes/templates/simple_zen/buttons/english/

    Then to force the graphic button versus the CSS button to show:
    That was the solution is it possible to forced through custom coding the image instead of the CSS buttons by shorter length of the text ?

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Changing add to cart button

    Quote Originally Posted by mdo82 View Post
    That was the solution is it possible to forced through custom coding the image instead of the CSS buttons by shorter length of the text ?
    It's software.. anything is possible.. and if you want to PAY someone to make this change for you you could.. the question is WHY when you have a FREE and SIMPLE solution available??

    the other option is to NOT use the CSS buttons..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Apr 2010
    Posts
    39
    Plugin Contributions
    0

    Default Re: Changing add to cart button

    Well I thought of spaces will not work, but so that was not a problem so I had to whether you could change it, but I just buried a number of spaces, so it works.

    Thanks

 

 

Similar Threads

  1. Changing the Add to cart button
    By Albert_Bouwman in forum Basic Configuration
    Replies: 38
    Last Post: 13 Apr 2013, 01:33 AM
  2. Missing add to cart button after changing servers
    By alexsmith2709 in forum General Questions
    Replies: 2
    Last Post: 30 Aug 2011, 05:58 PM
  3. Changing Add to Cart Button Name
    By embreak in forum Basic Configuration
    Replies: 2
    Last Post: 15 Jan 2008, 10:36 AM
  4. Changing add-to-cart from button to link
    By Leovenous in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Sep 2007, 12:33 AM
  5. changing add to cart button
    By willjoe86 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 May 2006, 02:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg