Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2010
    Posts
    27
    Plugin Contributions
    0

    Default Help needed: remove 'add' from product listing

    If anyone could help with this I'd be eternally grateful after spending my whole life (ok a day of it) sifting through folders trying to find what I need.

    What I need to do is locate the file which adds the word "add" next to the input box on the product listing page. I'm talking about the place where your customer types in the quantity of the product he/she wants to order.

    Apart from the fact that I want to change this word, I also want to wrap this up properly in <p> tags, or maybe make it a <label>.

    If only I could find where it is!!

    It's not in includes/modules/product_listing.php

    Neither is it in templates/template_default/common/tpl_tabular_display.php

    Where are you?!!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help needed: remove 'add' from product listing

    All output text is defined in language files; there will not be "Add" anywhere in the files you mention. Line 135 in product_listing.php may be the place you are looking for:
    PHP Code:
                  $lc_button TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART "<input type=\"text\" name=\"products_id[" $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />"
    You can edit the define for TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART as the best way to simply remove the Add.
    If you want to further edit the output, you can do it in product_listing.php.

  3. #3
    Join Date
    Jan 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: Help needed: remove 'add' from product listing

    Thanks for your reply gjh42. Alas the problem I have is in finding the place to define

    TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART

    You say it's in one of the language files, but which one?

    I'll go through them all again but if anyone can point me in the right direction that would be great.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help needed: remove 'add' from product listing

    The Developers Toolkit in admin > Tools is your friend.

    Paste the constant you are looking for in the top left box, select all files/default language or whatever and search. This will show the file and line number where it is defined.

  5. #5
    Join Date
    Jan 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: Help needed: remove 'add' from product listing

    Nope, sorry. I've just pasted

    TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART

    into every box in the developer's tool kit but it came up with nothing.

    Thanks for your help gjh42 but I think I'm out of my depth here if I can't just change the word "Add!" I do know a bit of php but not enough to find needles in haystacks... It is also important for me to get a viable meaning out of every word as the shop I'm working on must be highly accessible for reasons I shan't go into here.

    Think I'll have to pay for Actinic or something similar. I might be poorer but maybe I'll have some hair left by tomorrow.

  6. #6
    Join Date
    Jan 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: Help needed: remove 'add' from product listing

    Had to try again, and gjh42 you're a saviour.

    Line #564 : define('TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART', 'Add: ');

    Hurray!

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help needed: remove 'add' from product listing

    Glad you found it:)

 

 

Similar Threads

  1. remove price and add to cart from listing page
    By Ivanna in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Aug 2011, 08:10 PM
  2. Remove Logo from Product listing
    By cxdmedia in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Dec 2008, 01:12 AM
  3. remove add box from multiple product listing page
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Jul 2008, 10:39 PM
  4. Remove add to cart & add box from product listing!!!
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 May 2008, 12:27 PM
  5. Remove add in product listing
    By taguchi_isara in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Nov 2007, 12:20 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