Contributions
Easy Call for Price v1.0 by Bigredman74
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.
Expand All / Collapse All
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.
Minor Updates:
added link to contact us page when value = $0, updated code in to reflect osCommerce ver2.2 rc2, created html install file with clickable status list
Hi,
In products_new.php there is still the "add to cart" button, that allowed customers to add a product to their Cart even when the product price = 0 !!
I updated the file products_new.php so now you will not see the "add to cart" button.
only update, Not the full contribution.
All the best,
Nath
Easy call for price would still allow you yo add the item to the cart even though the price was 0.00 and would subtract from stock, Thix fixes that by removing the but now button from the catalog only for items that are set to 0.00 or whatever you set easy call for price to be
Updated installation instrctions to support multi languages.
see easy cal updated.txt
All credit to Tim Elam for this great contribution.
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.
Note: Contributions are used at own risk.