Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Zero price - Call for Price - Contact Us


jrvs

Recommended Posts

Posted

Please help!

 

I used http://www.oscommerce.com/forums/index.php?showtopic=72191 - It works great except that I need the code for product_reviews.php

 

original product_reviews:

 

<?php

echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a></p>';

?>

 

Can you please debug the following - the page is off (it may have something to do with <p>) and the "contact us" button doesnt appear for products with $0 price -

 

<php echo ($product_info['products_price'] > 0) ?

'<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>':

'<p><a href="' . tep_href_link(basename($PHP_SELF), tep_href_link(FILENAME_CONTACT_US) . '">' . tep_image_button('button_contact_us2.gif', IMAGE_CONTACT_US2)) . '</a></p>';

?>

 

Thank you in advance!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...