godino1 Posted December 18, 2005 Posted December 18, 2005 I'm using this in my product info <?php if ($product_info['products_quantity'] <=0) { ?> <td class="main"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_button('button_in_cart_na.gif', IMAGE_BUTTON_IN_CART_NA); ?> <?php } else { ?> <td class="main"><center><b><?php echo tep_get_products_stock($product_info['products_id']); ?></b><br><b><?php echo TEXT_QUANTITY ?></b><p> <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></center> <p> <?php } ?> all working fine so no problems there just trying to incorparate the following <!-- BEGIN EASY CALL FOR PRICE v1.0 --> <?php if ($product_info['products_price'] == CALL_FOR_PRICE_VALUE){ ?> <td class="main" align="right"><a href="java script:history.go(-1)"><?php echo tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE); ?></a></td> <?php } else { ?> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <?php } ?> <!-- END EASY CALL FOR PRICE v1.0 --> How would i merge the two so both work together? All help would be grateful.... Quote
Guest Posted December 18, 2005 Posted December 18, 2005 Since all you need to worry about is the BuyNow button I'd do it like this... <?php if ($product_info['products_quantity'] <=0) { ?> <td class="main" align="right"><a href="java script:history.go(-1)"><?php echo tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE); ?></a></td> <?php } else { ?> <td class="main"><center><b><?php echo tep_get_products_stock($product_info['products_id']); ?></b><br><b><?php echo TEXT_QUANTITY ?></b><p> <?php if ($product_info['products_price'] == CALL_FOR_PRICE_VALUE){ ?> <td class="main" align="right"><a href="java script:history.go(-1)"><?php echo tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE); ?></a></td> <?php } else { ?> <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></center> <p> <?php }} ?> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.