Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2011
    Posts
    177
    Plugin Contributions
    0

    Default Button wont use CSS!!!

    I'm sorry to post such a stupid question, but I have CSS buttons set to true and up until now that was working great. Every image button I deleted from my template folder was properly reverting to CSS except 1 which reverted to zens default image button instead.

    The 'Continue Checkout' button on my site refuses to use CSS even if there are no images available. Why is this happening?

    To see the button I'm referring to, go to www.pazzle.co.uk, and add something to cart and hit checkout.

  2. #2
    Join Date
    Jul 2011
    Posts
    177
    Plugin Contributions
    0

    Default Re: Button wont use CSS!!!

    Please, I know someone knows why this is happening. This is the code for that button.

    Code:
    <input type="image" src="includes/templates/template_default/buttons/english/button_continue_checkout.gif" alt="Continue To Checkout" title=" Continue To Checkout ">
    Clearly this is not being told to use CSS like all the other buttons on my website, but why? I'm just so over this there's no reason anyone would want that one button an image what is the point...

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Button wont use CSS!!!

    It looks like you've forced Checkout Without Account and the One Page Checkout. Could be something hard-coded in those files.
    Last edited by stevesh; 3 Oct 2012 at 02:58 PM.

  4. #4
    Join Date
    Jul 2011
    Posts
    177
    Plugin Contributions
    0

    Default Re: Button wont use CSS!!!

    Okay I managed to change it to a CSS button, not sure if it's the best way to do it but it works for now.
    Stevesh was right, it was hard coded in the COWOA file.

    I went into tpl_no_account_default.php, at around line 31 to line 34 (it's a div called #checkoutButtons) I replaced with this code:

    Code:
    <div id="checkoutButtons">
      <div id="checkoutButton" class="buttonRow forward"><?php echo zen_image_submit(BUTTON_CONTINUE_ALT); ?></div>
      <div class="buttonRow back"></div>
    </div>
    That basically stopped it using an image, so now I had my button but no text on it. To add text I went into html_output.php, at line 339 there is a value parameter that has no value, I just changed it to:

    Code:
          $css_button = '<input class="' . $mouse_out_class . '" ' . $css_button_js . ' type="submit" value="Continue"' .$text . '"' . $tooltip . $parameters . ' />';
    This may change the value of other submit type buttons but I am not aware of that yet. I will keep updated.

    Hope this helps anyone who might run into the same problem.
    Last edited by Inxie; 4 Oct 2012 at 04:35 AM.

  5. #5
    Join Date
    Jul 2011
    Posts
    177
    Plugin Contributions
    0

    Default Re: Button wont use CSS!!!

    As suspected this changed other buttons causing further problems :/
    My 'add to cart' button also become 'Continue'.

    I looked again at the original code, being
    Code:
    value="' .$text . '
    . It must be that my continue checkout button is not being used by the $text class. I don't know PHP programming so I don't fully understand how it works.
    Last edited by Inxie; 4 Oct 2012 at 06:55 AM.

 

 

Similar Threads

  1. Search button just wont display
    By Inxie in forum General Questions
    Replies: 2
    Last Post: 5 Sep 2012, 08:53 AM
  2. buy now button wont move
    By beavertje in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Jun 2009, 01:10 PM
  3. Add to Cart Button wont work in IE?? !!!
    By atracksler in forum Basic Configuration
    Replies: 2
    Last Post: 1 Dec 2006, 02:08 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