If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Replace "Add Selected Products to Cart" with custom graphic image

Replace "Add Selected Products to Cart" with custom graphic image

Locked

Started by andrew55 on 12 Jul 2009, 10:00 PM · Views: 1,090

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
12 Jul 2009, 10:00 PM
#1
andrew55 avatar

andrew55

New Zenner

Join Date:
Jun 2009
Posts:
43
Plugin Contributions:
0

Post #1 by andrew55

I've been searching and haven't found anything on this. I just want to replace the dynamic buttons, such as the "Add Selected Products to Cart" on the categories page, with my own custom button graphic (.jpg, .gif, etc).

I'm sure others have done this. Any ideas on where I can find a tutorial for this or does anyone have any suggestions? Thanks for any help.

12 Jul 2009, 11:49 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

Not sure what your template is displaying

A good reason to post a link to your page in question

https://www.zen-cart.com/tutorials/index.php?article=51

Zen-Venom Get Bitten

13 Jul 2009, 12:05 AM
#3
andrew55 avatar

andrew55

New Zenner

Join Date:
Jun 2009
Posts:
43
Plugin Contributions:
0

Post #3 by andrew55

Sorry about that - if you go to this link: https://www.sarasotafarms.org/biz/index.php?main_page=product_info&cPath=67_68&sort=20a&products_id=182

You will see there are three buttons above the product. They are "previous, listing , and next". The previous and next buttons are graphics uploaded by me, but it seems the "listing" button is dynamically generated (it's not a .gif or .jpg).

This is my guess to why it looks different from the other two buttons. I'm just trying to get this middle button to be a custom image button as the other two are. My guess is I have to edit some php somewhere and tell Zen Cart to use my custom graphic instead of creating a dynamic button. I don't know what pages or code to change. Any suggestions greatly appreciated.

13 Jul 2009, 12:41 AM
#4
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Post #4 by lissae

If you right click the button and choose Properties you will get the filename you need to save your created button as...in your case:

http://www.sarasotafarms.org/biz/includes/templates/farm/buttons/english/button_return_to_product_list.gif

Once you save it as that and upload it to your server it should show :)

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

13 Jul 2009, 12:45 AM
#5
andrew55 avatar

andrew55

New Zenner

Join Date:
Jun 2009
Posts:
43
Plugin Contributions:
0

Post #5 by andrew55

It's that easy! Great. I got confused and thought the button wasn't an actual image (I thought the text in the button we generated dynamically with some styling around it). Anyway, thanks for the help.

13 Jul 2009, 12:54 AM
#6
andrew55 avatar

andrew55

New Zenner

Join Date:
Jun 2009
Posts:
43
Plugin Contributions:
0

Post #6 by andrew55

One more quick question on the topic of buttons. I am going to redesign all the buttons for the cart in photoshop. I'm going to keep them close to the same size, but some of them I would like to enlarge a bit. Is there width/height settings I need to adjust anywhere, or does Zen Cart automatically accept the new button sizes uploaded? I thought I would ask before I start creating the buttons!

13 Jul 2009, 12:58 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #7 by kobra

Is there width/height settings I need to adjust anywhere, or does Zen Cart automatically accept the new button sizes uploaded? I thought I would ask before I start creating the buttons!
As long as you do not go overboard and exceed the relestate available you will be fine
Check as you create your larger ones

Zen-Venom Get Bitten

13 Jul 2009, 1:07 AM
#8
andrew55 avatar

andrew55

New Zenner

Join Date:
Jun 2009
Posts:
43
Plugin Contributions:
0

Post #8 by andrew55

More good news - thanks