Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    help question add to cart image and input field

    hi all,

    just cant seem to figure this one out. On the product info page I have substituted the "Add to Cart" text with an image but I'm having trouble aligning it with the input field (see here).

    From the tpl_product_info_display.php, here is the
    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']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
                } else {
                  // show the quantity box
        $the_button = zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="1" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']);
                }
        $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 $display_button;
                ?>
              </div>
      <?php } // display qty and button ?>
    <?php } // CUSTOMERS_APPROVAL == 3 ?>
    <br /><br />
    <!--eof Add to Cart Box-->
    
    <!--bof Attributes Module -->
    <?php
      if ($pr_attr->fields['total'] > 0) {
    ?>
    <?php
    /**
     * display the product atributes
     */
      require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
    <?php
      }
    ?>
    <!--eof Attributes Module -->
    I've looked in the tpl_modules_attributes.php file but there doesn't seem to be anything there to help. desperately seeking a clue.

    tia

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: add to cart image and input field

    If I understand your issue correctly - check your Private Messages
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    Default Re: add to cart image and input field

    thanks kobra but it wasn't the answer . does anyone have any suggestions.

 

 

Similar Threads

  1. How to add a new input field for products customization requests?
    By itsrajk in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 17 Sep 2011, 06:13 PM
  2. Convert Text Input Field to Image?
    By ramblas in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Jun 2010, 02:01 PM
  3. Remove Search Button and add text to input field
    By sjk1000 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 10 Oct 2008, 12:19 AM
  4. How do I add another field for customer to input during order?
    By markiemark in forum Managing Customers and Orders
    Replies: 4
    Last Post: 5 Aug 2008, 11:14 AM
  5. Extra Field and input codes
    By JenBaby in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Oct 2006, 09:52 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