How would I change the image on the shopping cart page for updating quantity to be a link instead of that image?
How would I change the image on the shopping cart page for updating quantity to be a link instead of that image?
Where you see the image ... remove it and replace it with text or a define ...
You can do a search in the Tools ... Developer's Tool Kit on the name of the image ...
This will give you the name of the constant ...
Now search on the constant ... this will give you where the constant is defined and where the constant is used ...
This should lead you to where you can customize the link and/or define to change the image to a link ...
Got all that?!
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I know I need to replace where it's in the files. But I can't figure out how to change it from an image submit to a link submit.
Submit must be a button.
- either a graphic
- or a browser-generated button
....unless of course you can show an example of where you've seen a text-based submit link?
.
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.
I'm looking to do this as well.
And, yes, you can use text as a submit button. I do it all the time:
<.a href="javascript:document.theForm.submit();">Submit</a>
Has anyone figured this out, I need to do this also?
Thanks
Mike
Linda gave the correct explicit instructions in the second post in this thread. Really.
Rob
all i get when i follow her instructions are this:
/includes/languages/english/icon_names.php
Line #14 : define('ICON_IMAGE_UPDATE', 'button_update_cart.gif');
which on the icons_names.php it doesnt have a way to change image to link.
Am I missing something?
Thanks in advance.
"Now search on the constant ... this will give you where the constant is defined and where the constant is used ..."
A search on ICON_IMAGE_UPDATE will show where the constant is used; you can change the code in that file to output text instead of an image (if the zen_image() function is used), and you can then change the define from 'button_update_cart.gif' to 'Update' or whatever.
Post the code line if you are having trouble changing it.
Ahhh, now I see what you mean, ok I did that and the alt text showed up as a link but then I looked at the tpl_shopping_cart_default.php page and where it shows this: <?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?> I changed it to this: <?php echo zen_image_submit(ICON_IMAGE_UPDATE, 'UPDATE TOTAL'); ?>
Works beautifully, a zen_image_submit turned into text that I can style with css.
Thank you so much for your time, I greatly appreciate it.
Mike
Bookmarks