Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2004
    Posts
    105
    Plugin Contributions
    2

    Default Change Update cart image to a link

    How would I change the image on the shopping cart page for updating quantity to be a link instead of that image?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Change Update cart image to a link

    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!

  3. #3
    Join Date
    May 2004
    Posts
    105
    Plugin Contributions
    2

    Default Re: Change Update cart image to a link

    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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Change Update cart image to a link

    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.

  5. #5
    Join Date
    Jun 2004
    Posts
    130
    Plugin Contributions
    0

    Default Re: Change Update cart image to a link

    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>

  6. #6
    Join Date
    Jan 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Change Update cart image to a link

    Has anyone figured this out, I need to do this also?

    Thanks

    Mike

  7. #7
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Change Update cart image to a link

    Linda gave the correct explicit instructions in the second post in this thread. Really.

    Rob

  8. #8
    Join Date
    Jan 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Change Update cart image to a link

    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.

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

    Default Re: Change Update cart image to a link

    "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.

  10. #10
    Join Date
    Jan 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Change Update cart image to a link

    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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 image to contact functions_general update to link instead of contact_us
    By mutinyzoo in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Oct 2013, 07:25 PM
  2. v139h Change update button in cart to text
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Aug 2012, 08:14 PM
  3. Update cart image extention?
    By MYYZTIK in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Oct 2011, 08:44 AM
  4. change page image link and image only for selected product pages
    By mpjbay in forum Templates, Stylesheets, Page Layout
    Replies: 20
    Last Post: 9 Dec 2009, 05:39 AM
  5. Change image link to text link
    By BekahRuth in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Sep 2007, 08:12 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR