Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Help needed: remove 'add' from product listing

Help needed: remove 'add' from product listing

Locked

Views: 821

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
27 Jan 2010, 7:51 PM
#1
stevenw avatar

stevenw

New Zenner

Join Date:
Jan 2010
Posts:
37
Plugin Contributions:
0

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

27 Jan 2010, 8:11 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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
$lc_button = TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "<input type="text" name="products_id[" . $listing->fields['products_id'] . "]" value="0" size="4" />";

If you want to further edit the output, you can do it in product_listing.php.
27 Jan 2010, 11:05 PM
#3
stevenw avatar

stevenw

New Zenner

Join Date:
Jan 2010
Posts:
37
Plugin Contributions:
0

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.

27 Jan 2010, 11:22 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

27 Jan 2010, 11:52 PM
#5
stevenw avatar

stevenw

New Zenner

Join Date:
Jan 2010
Posts:
37
Plugin Contributions:
0

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.

28 Jan 2010, 12:37 AM
#6
stevenw avatar

stevenw

New Zenner

Join Date:
Jan 2010
Posts:
37
Plugin Contributions:
0

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!

28 Jan 2010, 1:00 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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

Glad you found it:)