Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted

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

}} ?>

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...