Contributions
Easy Call for Price 2.3.1-ver1.0
This contribution is revised from Easy Call for Price Ver1.4 for OSC Ver2.x .
It 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 THREE 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
Beg your proud, George.
The previous submission forgot to include your comments.
This release also revise some discription as well as number of relevant files to FIVE.
All modification procedures are the same as previous release.
Revise this package to include file "catalog/products_new.php"
javascript.history.go(-1) or javascript.history.back() for "catalog/product_info.php" cannot work properly for Firfox upto this moment.
In catalog/includes/classes/currencies.php
FIND:
function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
REPLACE WITH:
// BOF: MOD - EASY CALL FOR PRICE v1.4
// return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
define ('CALL_FOR_PRICE_VALUE', 0);
// If you sell products for $0.00 and want to display "Call for Price!" for other products, set their price and the CALL_FOR_PRICE_VALUE to -1.
if ($products_price > CALL_FOR_PRICE_VALUE){
return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
} else {
define ('TEXT_CALL_FOR_PRICE', 'TEXT_CALL_FOR_PRICE');
// You can set CALL_FOR_PRICE_TEXT to anything you want. Its style is determined by the page it is displayed on. Changes made here will be visible throughout your site.
return TEXT_CALL_FOR_PRICE;
// BOF: MOD - EASY CALL FOR PRICE v1.4
}
No file attached, only thw correction
This contribution is revised from Easy Call for Price Ver1.4 for OSC Ver2.x .
It 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 THREE 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.