Page 9 of 15 FirstFirst ... 7891011 ... LastLast
Results 81 to 90 of 149
  1. #81
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    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 . ' />';
        }

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

    Default Re: CSS3 Buttons [support thread]

    Great job

    Its working!

  3. #83
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: CSS3 Buttons [support thread]

    Thanks for reporting the issue!

  4. #84
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: CSS3 Buttons [support thread]

    v1.0.4 is now available in the plugins. Besides correcting the issue reported by remops, this version includes DrByte's "memory exhausted" fix (http://www.zen-cart.com/showthread.p...51#post1240551) for the zen_href_link function.

  5. #85
    Join Date
    Dec 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: CSS3 Buttons [support thread]

    i increase the height of slider in the home page, now it is covering some part of content area... how i move the container lower from the slider? pls help

  6. #86
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by easyphil View Post
    i increase the height of slider in the home page, now it is covering some part of content area... how i move the container lower from the slider? pls help
    Why do you believe that this is a CSS3 buttons' issue? I think you'd get more help by either posting your question (with a link to the page in question) to either the slider's support thread or the templates that's included the slider's support thread.

  7. #87
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: CSS3 Buttons [support thread]

    Soooooooooooooooooooooo... been a minute since I stirred up some trouble round here.. Gotta question which lat9 is gonna LOOOOOOVE!!!

    How can one use awesome fonts with the CSS buttons.. I would like to prepend the shopping cart character to the "Add to Cart" button for example.

    Now before anyone tells me to simply add the Awesome Font HTML to the language file.. Been there.. done that.. got a t-shirt.. WHat I end up with is the alt definition being so long that it exceeds 40 characters and the image button displays instead of the CSS button.

    I've edited the pages (product info shopping cart, etc) that I want to add the font glyphs to directly, but then I gotta add a MESS of CSS to align the font with the button I want.. and that's an OKAY solution, but it still doesn't really prepend the button text with the font which is what I REALLY.

    Can I buy a vowel.. just kidding.. anyone got a HINT on how to do this.. or heck I'll admit I might need more than a hint here...

    HELP!!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #88
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: CSS3 Buttons [support thread]

    Okay.. so this is as far as I got (note the bits in red):

    Code:
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      // do nothing
    } else {
    ?>
                <?php
        $display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
                if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
                  // hide the quantity box and default to 1
                  $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . '<i class="fa fa-shopping-cart"></i>' . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
                } else {
                  // show the quantity box
        $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . '<i class="fa fa-shopping-cart"></i>' . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
                }
        $display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
      ?>
      <?php if ($display_qty != '' or $display_button != '') { ?>
        <div id="cartAdd">
        <?php
          echo $display_qty;
          echo '<i class="fa fa-shopping-cart"></i>';
          echo $display_button;
                ?>
              </div>
      <?php } // display qty and button ?>
    <?php } // CUSTOMERS_APPROVAL == 3 ?>
    <!--eof Add to Cart Box-->
    This got this result:
    http://tlwtestsite(dot)tablelegworld...-Palantir-only

    It puts the glyph next to the button, but not IN the button..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #89
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: CSS3 Buttons [support thread]

    DivaVocals, you're always pushing the envelope! It's a difficult problem, since the font-awesome definitions are enclosed in <i></i> tags which won't fly for the button names (they're specified in the value attribute for a submit button).

    You've got me thinking ...

  10. #90
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by lat9 View Post
    DivaVocals, you're always pushing the envelope! It's a difficult problem, since the font-awesome definitions are enclosed in <i></i> tags which won't fly for the button names (they're specified in the value attribute for a submit button).

    You've got me thinking ...
    Yep.. see that line?? I may not cross it, but I don't mind walking on it.. hahahahahaha.. but don't cha love that I am MAKING you think???? hahahahahahaha...

    I wonder if this is possible using psuedo elements.. I know that requires wrapping every input element in a span or div and apply the CSS on these. Dunno if that would work which kinda doesn't matter since I can't see HOW to do it.. Sigh...

    Of course if I understood how to use the unicode for each glyph, then that might allow me to put the glyphs inside the language file without triggering the 40 char limit..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 9 of 15 FirstFirst ... 7891011 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 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

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