Forums / Templates, Stylesheets, Page Layout / add to cart image and input field

add to cart image and input field

Locked

Started by tonkali on 23 Feb 2008, 3:17 AM · Views: 1,898

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
23 Feb 2008, 3:17 AM
#1
tonkali avatar

tonkali

New Zenner

Join Date:
Sep 2006
Location:
NYC
Posts:
76
Plugin Contributions:
0

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 ```

<!--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
23 Feb 2008, 5:41 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: add to cart image and input field

If I understand your issue correctly - check your Private Messages

Zen-Venom Get Bitten

25 Feb 2008, 12:02 AM
#3
tonkali avatar

tonkali

New Zenner

Join Date:
Sep 2006
Location:
NYC
Posts:
76
Plugin Contributions:
0

Re: add to cart image and input field

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