Results 1 to 10 of 149

Hybrid View

  1. #1
    Join Date
    Mar 2014
    Location
    Memphis, TN
    Posts
    61
    Plugin Contributions
    0

    Default Re: CSS3 Buttons [support thread]

    Thanks again!

    Learning something

    Can you point me at an article or thread that may help in creating/changing these to css type?

    Thanks
    Last edited by remops; 6 Apr 2014 at 07:40 PM. Reason: spelling

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: CSS3 Buttons [support thread]

    You can learn about CSS selectors at http://www.w3schools.com/cssref/css_selectors.asp. Once you've got a selector defined, you would apply CSS properties similar to those set in the stylesheet_css_buttons.css file.

  3. #3
    Join Date
    Mar 2014
    Location
    Memphis, TN
    Posts
    61
    Plugin Contributions
    0

    Default Re: CSS3 Buttons [support thread]

    I have the wishlist plugin installed and the button works fine if the css buttons are turned off. If I turn the buttons on the css button adds the item to the cart instead of the wishlist. I created the button below. Any ideas on the code to get it to submit to the wishlist?

    Thanks


    HTML Code:
    input.cssButton.wishlist_add {
     background-color: #EB7A17; 
     width: 140px;-moz-border-radius:3px;
      -webkit-border-radius:3px;
      border-radius:3px;
      display:inline-block;
      font-family:Verdana;
      font-size:20px;
      font-weight:bold;
      margin: 0;
      padding:3px 8px;
      text-decoration:none;
      color: #FAF6F5;  /* Text color for submit buttons */}
      
    input.cssButtonHover.wishlist_add { 
    background-color: #F09443;
    width:140px; 
    font-size:20px;
    color: #FAF6F5;  /* Text color for submit buttons */}

  4. #4
    Join Date
    Mar 2014
    Location
    Memphis, TN
    Posts
    61
    Plugin Contributions
    0

    Default Re: CSS3 Buttons [support thread]

    This is the wishlist html markup
    That may help

    Thanks

    HTML Code:
    <input type="image" value="yes" name="wishlist" title=" Add to Wish List " alt="Add to Wish List" src="includes/templates/all_business/buttons/english/wishlist_add.gif">
    and if I turn on the css buttons this is what the button html markup is

    HTML Code:
    <input type="submit" name="wishlist" value="Add to Wish List" onmouseout="this.className='cssButton submit_button button  wishlist_add'" onmouseover="this.className='cssButtonHover  wishlist_add wishlist_addHover'" class="cssButton submit_button button  wishlist_add">
    Last edited by remops; 16 Apr 2014 at 05:07 AM.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by remops View Post
    This is the wishlist html markup
    That may help

    Thanks

    HTML Code:
    <input type="image" value="yes" name="wishlist" title=" Add to Wish List " alt="Add to Wish List" src="includes/templates/all_business/buttons/english/wishlist_add.gif">
    and if I turn on the css buttons this is what the button html markup is

    HTML Code:
    <input type="submit" name="wishlist" value="Add to Wish List" onmouseout="this.className='cssButton submit_button button  wishlist_add'" onmouseover="this.className='cssButtonHover  wishlist_add wishlist_addHover'" class="cssButton submit_button button  wishlist_add">
    Well , I fixed that a couple of months ago and never uploaded the changes. Let me get v1.0.3 packaged and uploaded and then I'll post the change to get this working.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: CSS3 Buttons [support thread]

    v1.0.3 has been submitted to the plugins (available here when approved: http://www.zen-cart.com/downloads.php?do=file&id=1386), providing a fix for:

    If the name attribute is included in the $parameters for a submit-type button, need to "emulate" the return from an <input type="image" /> type button press by adding _x to the name specified. The solution is based on this thread in the Zen Cart forums.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by lat9 View Post
    Well , I fixed that a couple of months ago and never uploaded the changes. Let me get v1.0.3 packaged and uploaded and then I'll post the change to get this working.
    Following is the change to the zenCssButton function in /includes/functions/html_output.php to provide the emulation required to allow the Wish List button to operate properly:
    Code:
        if ($type == 'submit'){
    // form input button
    //-bof-v1.0.3a
          if ($parameters != '') {
            // If the input parameters include a "name" attribute, need to emulate an <input type="image" /> return value
            // by adding a _x to the name parameter (thanks to paulm for providing the fix for Zen Cart v1.3.6!).  
            if (preg_match('/name="([a-zA-Z0-9\-_]+)"/', $parameters, $matches)) {
              $parameters = str_replace('name="' . $matches[1], 'name="' . $matches[1] . '_x', $parameters);
            }
            // If the input parameters include a "value" attribute, remove it since that attribute will be set to the input
            // text string.
            if (preg_match('/(value="[a-zA-Z0=9\-_]+")/', $parameters, $matches)) {
              $parameters = str_replace($matches[1], '', $parameters);
            }
          }
    //-eof-v1.0.3a
          $css_button = '<input class="' . $mouse_out_class . '" ' . $css_button_js . ' type="submit" value="' .$text . '"' . $tooltip . $parameters . ' />';
        }

  8. #8
    Join Date
    Mar 2014
    Location
    Memphis, TN
    Posts
    61
    Plugin Contributions
    0

    Default Re: CSS3 Buttons [support thread]

    Great job

    Its working!

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. SysCheck [support thread]
    By swguy in forum All Other Contributions/Addons
    Replies: 36
    Last Post: 24 Oct 2020, 05:28 AM
  3. v150 CSS Buttons for Admin [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 24 Dec 2015, 09:13 PM
  4. goMobile Support Thread
    By steveyork136 in forum Addon Templates
    Replies: 29
    Last Post: 26 Aug 2015, 11:56 AM
  5. Wordpress On ZC [Support Thread]
    By hira in forum All Other Contributions/Addons
    Replies: 1858
    Last Post: 17 Jan 2014, 01:24 AM

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