Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2008
    Posts
    19
    Plugin Contributions
    0

    Default Add to Cart CSS Image Rollovers

    I'm hoping this hasn't already been addressed, though I have been searching the forums to find out.

    I am in tpl_product_info_display and I'm trying to find where the add to cart button code is defined. I am wanting to style the button so I can use my own graphic button that has three states contained within one image. Using CSS, you can set the background image of a tag and then move the image so that the over and active states are visible. Apple.com uses this extensively. However, I can't find where the code of the Add to Cart button is defined. Anyone know?

    Thanks! :)

    Christian

  2. #2
    Join Date
    Nov 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Add to Cart CSS Image Rollovers

    As an addendum to my post, I found definitions for form submit buttons with images under zen_image_submit in includes/functions/html_output.php but there's another function called by tpl_product_info_display.php to zen_get_buy_now_button in includes/functions/functions_general.php that seems to have no effect because when I took it out and just displayed the button sent back from zen_image_submit, there was no change. A bit confused on that one. Probably beyond my tinkering-level knowledge but hoping to get my css image rollovers for submit buttons. If I can standardize in some way, even better.

  3. #3
    Join Date
    Nov 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Add to Cart CSS Image Rollovers

    Just in case anyone else is interested in my hack solution, I put class="submitButton" into the <input type="image"> component of zen_image_submit within includes/functions/html_output. I'm disappointed that I couldn't do a template override within the functions folder. Though, I guess it's not really a template. Still, it would be nice to be able to have more control over these submit buttons. :)

  4. #4
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    Default Re: Add to Cart CSS Image Rollovers

    this was very helpful..thanks

 

 

Similar Threads

  1. CSS Buttons - Change only the add to cart button to an image
    By ksookma in forum General Questions
    Replies: 1
    Last Post: 11 Oct 2011, 04:23 AM
  2. Adding image rollovers in ez-pages
    By photopainter in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jun 2009, 01:38 PM
  3. Image Rollovers help
    By hottytoddysummer in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 26 Mar 2008, 09:42 PM
  4. CSS Element for Add to Cart CSS button?
    By modernm in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jan 2008, 04:54 PM
  5. thumbnail image rollovers
    By awhite in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 6 Jun 2007, 03:51 PM

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