Results 1 to 1 of 1
  1. #1
    Join Date
    Oct 2007
    Posts
    41
    Plugin Contributions
    0

    Idea or Suggestion how to : automatic change "add to cart" picture when mosue move on?

    Hi, guys

    I saw a very good effect on other site.
    When move the mouse to the "add to cart" picture, the picture will change to another picture auto.

    How to do it in the zen-cart?
    anyone knows?

    Thanks



    This is the zen-car code, how to change it?
    Code:
                    <?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']) . 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="10" 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']) . 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 != '') { ?>
                  </p>
                  <div id="freeShippingIcon"></div>
                  <div id="cartAdd"> 
                    <?php
          echo $display_qty;
          echo $display_button;
                ?>
    Last edited by fiji; 3 May 2008 at 12:22 PM.

 

 

Similar Threads

  1. Shopping cart - trying to turn off "Total Items" "Weight" and "Price"
    By deshojo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 4 Apr 2011, 07:15 PM
  2. Move "Add to Cart" button to top of page.
    By jaztechnologies in forum Templates, Stylesheets, Page Layout
    Replies: 28
    Last Post: 21 Jul 2009, 12:02 AM
  3. Trying to add a disclaimer checkbox and move "add to cart" button
    By RossMosh in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Feb 2008, 11:45 PM
  4. Move "Home" & "Login" links at top of page
    By kp14 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 May 2007, 06:33 PM
  5. Customizing Product Listing - Move "add to cart", Attributes, etc
    By woodlandsprite in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 5 Jul 2006, 01:30 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
  •