Forums / General Questions / "Contact Us" button without an image.

"Contact Us" button without an image.

Views: 5,075

Results 1 to 18 of 18
2 Feb 2012, 8:46 PM
#1
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

"Contact Us" button without an image.

I am using Zen Cart v1.3.9h

I have set it up as a showcase with prices.

On my product pages there is a "Contact Us" button without an image. I have looked in button_names.php but it is not defined there.

I have looked in the buttons folder under my template and there is no image file for it.

I kept a copy of Zen Cart before I made any changes and I did not find it there either.

I downloaded some of the Addon Button packages and I don't see a "Contact Us" button image in any of them either.

The ALT text for the button is displayed and the button goes to the proper page.

Can anyone tell me what I need to do to have an image displayed for the "Contact Us" button?
:frusty:

2 Feb 2012, 9:25 PM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: "Contact Us" button without an image.

The button is named button_send.gif.

The best way to learn is to try stuff. But, back it up first.

2 Feb 2012, 11:03 PM
#3
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

Well, I don't understand the logic of using a send button for a contact, but I can change the graphic easy enough. I still don't know why the image does not show up. button_send.gif exists in the proper folder. The button I am talking about exists on the product info page. When I inspect the element with Firebug, there is no image file showing as there is with the other buttons on the page.

2 Feb 2012, 11:06 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "Contact Us" button without an image.

How about a link to the page?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Feb 2012, 11:54 PM
#5
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

I am talking about the "Contact Us" button on the product information page. The one that links to the Contact page. The send button is where it's suppose to be.

The ALT test for the button exists. When I inspect the element with Firebug, there is no image file showing with the link as there is with the other buttons on the page.

I checked the button_names.php file and there isn't a button defined for a contact. I'll post a screenshot in a minute.

2 Feb 2012, 11:59 PM
#6
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

This is what I am seeing:

3 Feb 2012, 12:58 AM
#7
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: "Contact Us" button without an image.

Since Zen Cart doesn't add a contact us image to the product info page, you've either installed an add-on that does, or edited the tpl_product_info_display.php to put it there.

The best way to learn is to try stuff. But, back it up first.

3 Feb 2012, 2:00 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "Contact Us" button without an image.

That's not a button. It's just text. It's only a clickable text link. Not a button image. That's how the original code is designed to display when you set the store in that mode.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Feb 2012, 12:31 PM
#9
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

Thanks so much! I would like to make it a button. Can you tell me which files to edit?

3 Feb 2012, 3:46 PM
#10
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

The only add-on I have used is the US flag icon. I have searched tpl_product_info_display.php and can't find a reference to "contact".

3 Feb 2012, 4:00 PM
#11
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

DrByte:

That's not a button. It's just text. It's only a clickable text link. Not a button image. That's how the original code is designed to display when you set the store in that mode.

Ah Hah!! I changed the store status back to normal and the "Add to Cart" button appeared in its place!

I don't want to use the cart at this point. I just want to use it as a catalog with prices.

I like the "Contact Us" link appearing on the page, but I don't like the way it looks and would rather to use a button image instead.

Any hints as to how I can accomplish this will be greatly appreciated!

3 Feb 2012, 4:58 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "Contact Us" button without an image.

Try Admin->Configuration->Product Info->Product Info -> Price is Call for Price Image or Text Status

Product Info - Price is Call for Price Image or Text Status
Description: Product Info - Show the Price is Call for Price Image or Text on Displayed Price
0= Text
1= Image

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Feb 2012, 1:07 AM
#13
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

DrByte:

Try Admin->Configuration->Product Info->Product Info -> Price is Call for Price Image or Text Status

Product Info - Price is Call for Price Image or Text Status
Description: Product Info - Show the Price is Call for Price Image or Text on Displayed Price
0= Text
1= Image

That is currently set to image, but I am using the "showcase with prices" mode.

I read a few threads about disabling it, but none of them worked. Someone said they found the answer in the forum but they didn't provide a link.

I don't really want to disable it. I thought about it and considered putting my own link on the product page. I talked myself out of that!

I decided to just change the text color for now. It looks better.

Hopefully I will figure out how to replace the text with an image at some point, but I can live with it for now. :dontgetit

4 Feb 2012, 2:07 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "Contact Us" button without an image.

Oh, right. The setting I mentioned before is for when individual products are marked as Call For Price.

You'll need to change this setting:define('TEXT_SHOWCASE_ONLY','Contact Us');The smartest way to do that is to create a new file at /includes/languages/YOUR_TEMPLATE_NAME_HERE/english.php and just put that line in it, like this:```

<?php // my custom language definitions define('TEXT_SHOWCASE_ONLY','<img src="blah.jpg" alt="Contact Us" />'); ```And alter the text/html according to whatever you want it to be.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Feb 2012, 8:50 PM
#15
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

Thanks Dr. B! I'll give that try.

8 Feb 2012, 5:50 PM
#16
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

DrByte:

Oh, right. The setting I mentioned before is for when individual products are marked as Call For Price.

You'll need to change this setting:define('TEXT_SHOWCASE_ONLY','Contact Us');The smartest way to do that is to create a new file at /includes/languages/YOUR_TEMPLATE_NAME_HERE/english.php and just put that line in it, like this:```

<?php // my custom language definitions define('TEXT_SHOWCASE_ONLY','<img src="blah.jpg" alt="Contact Us" />'); ```And alter the text/html according to whatever you want it to be. I can see that this will work, but I am having a hard time with the path to my image. :blush: This is where I put my image: /includes/templates/CUSTOM/images/contact_us.gif I have tried this: define('TEXT_SHOWCASE_ONLY','<img src="contact_us.gif" alt="Contact Us" />'); and this: define('TEXT_SHOWCASE_ONLY','<img src="../templates/CUSTOM/images/contact_us.gif" alt="Contact Us" />'); This is what I see: ![](http://floridabendpakdealer.com/screenshots/contact_button.jpg) I have tried a few other variations and I am just confusing myself. Please tell me where I am going wrong. :frusty: Also, the black border is still there. If I find the correct path to my image, can I remove the border?:bangin::bangin::bangin:
9 Feb 2012, 9:13 AM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "Contact Us" button without an image.

Did you try <img src="includes/templates/CUSTOM/images/contact_us.gif" ....

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Feb 2012, 3:50 PM
#18
webmama avatar

webmama

New Zenner

Join Date:
Sep 2011
Posts:
24
Plugin Contributions:
0

Re: "Contact Us" button without an image.

DrByte:

Did you try <img src="includes/templates/CUSTOM/images/contact_us.gif" ....

Thank You, thank you, thank you!
:clap::clap::clap:

♫ ♫ With the thoughts that I'd be thinkin', I could be another Lincoln, IF I ONLY HAD A BRAIN.♫ ♫

I have 1 more question. The button on the product page still has a black border around it. It does not appear around the button on the product category page. Can this be removed?