Community Add-Ons
Easy Call for Price v1.0 by Bigredman74
for osCommerce Online Merchant v2.2
Easy Call for Price is an easy way to display “Call for Price!” whenever a product’s price is set to 0. Change a couple of values and you can also sell products for $0.00 and display "Call for Price!" for other products.
Only TWO files to modify. Install time is less than 5 minutes.
It works throughout the site, even with other contributions with no additional changes.
Screenshots included for product_info, x-sell, x-sell showing $0.00 and “Call for Price!” and featured_products.
In catalog/product_info.php section I changed the comment line to use /* and */ so the closing ?> tag in the commented out line does not affect the code, this removed the need for the redundant <?php opening tag.
In catalog/includes/modules/product_listing.php and product_listing_col.php section I changed:
if ($listing[$x]['products_price']== '0'){ //fix for call for price
to
if ($listing['products_price']== '0'){ //fix for call for price
This allowed the item to show in the product listing without the "buy now" button. My installation is very vanilla and the original code did not work properly for me.
