Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2010
    Posts
    46
    Plugin Contributions
    0

    Default Replacing More Info text with a button.

    Hi Guys - i've been trying to replace the more info link on the product listing pages with a button for a while now.

    I tried adding:-
    // more info in place of buy now
    define('MORE_INFO_TEXT','<img src="relative_path/to_your/image.gif" alt="Name of Button" />');

    to the tpl_product_info_listing code.

    I found this in a really old thread but nothing appears to happen!

    The site is www.jambaroo.co.uk :)

    Thankies

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Replacing More Info text with a button.

    This works for me:

    define('MORE_INFO_TEXT','<img src="includes/templates/TEMPLATE_NAME/images/moreinfo.gif"></img>');

    But in english.php. I don't seem to have a tpl_product_info_listing.php file.

  3. #3
    Join Date
    Nov 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: Replacing More Info text with a button.

    Replace this code in your template:

    Code:
    . MORE_INFO_TEXT .
    with:
    Code:
    . zen_image_button(BUTTON_IMAGE_DESIGN, BUTTONS_IMAGE_DESIGN_ALT) .
    Then go to languages/english/button_names.php and add:
    Code:
     
    define('BUTTON_IMAGE_DESIGN','button_design.gif');
    define('BUTTON_IMAGE_DESIGN_ALT','design your own');
    Then upload a button image into: includes/templates/your_theme/buttons/english

    That should do it. It works for me.

  4. #4
    Join Date
    Oct 2010
    Posts
    46
    Plugin Contributions
    0

    Default Re: Replacing More Info text with a button.

    Tried both suggestions and i get nothing.

    When you say "add to your template" which file are you referring to? I tried the code in the English.php and tpl_product_info_display files and neither works.

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Replacing More Info text with a button.

    As I said, it works for me, so either there's something different about your site (changes to the product listing template files, for example), or maybe the image you want to appear isn't in includes/templates/custom/images.

  6. #6
    Join Date
    Oct 2010
    Posts
    46
    Plugin Contributions
    0

    Default Re: Replacing More Info text with a button.

    I've managed to get it to show on the featured/all/new listings but i'm struggling to get it to show on the category listings?? Any ideas?

 

 

Similar Threads

  1. v150 Replace "...more info" with a Go To Product Details button
    By TamaraSFL in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Sep 2012, 08:20 PM
  2. Replacing "... more info" with a button
    By NattyCat in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 18 Apr 2011, 05:13 PM
  3. Adding a more info button alongside buy now button
    By jwburnside in forum General Questions
    Replies: 5
    Last Post: 6 Nov 2010, 01:36 PM
  4. Replacing Button images with custom...
    By liquidSpin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Oct 2008, 10:07 PM
  5. Replacing option radio button with "Buy Now" button
    By GavCaz in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 31 Aug 2007, 10:17 PM

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