Posted by JesoX on December 27, 2009 at 12:36pm
This module allows users to make offers on ubercart products
It has the following features:
- It provides a checkbox in the product node edit form that allows users to add the Make an Offer button to an existing product, the Make an Offer button is placed next to the Add to Cart button
- It also replaces the Add to Cart button for zero priced products with the Make an Offer button
- When the user clicks on the Make an Offer button, an Ajax popup appears where he can enter his name, email and phone number followed by his offer
- When the user clicks send, an email is sent to the site's main email with the Product information, Offer and Customer Information
If you want to remove the occurrence of the zero price at all you can add the following code to your theme to replace the $0.00 sell and list price with a Call for price using the following code (using the marinelli theme as an example)
function marinelli_uc_price($value, $context, $options) {
// Fixup class names.
if (!is_array($context['class'])) {
$context['class'] = array();
}
foreach ($context['class'] as $key => $class) {
$context['class'][$key] = 'uc-price-'. $class;
}
$context['class'][] = 'uc-price';
// Class the element.
$output = '<span class="'. implode(' ', $context['class']) .'">';
// Prefix(es).
if ($options['label'] && isset($options['prefixes'])) {
$output .= '<span class="price-prefixes">'. implode('', $options['prefixes']) .'</span>';
}
// Value.
$output .= $value;
// Suffix(es).
if ($options['label'] && isset($options['suffixes'])) {
$output .= '<span class="price-suffixes">'. implode('', $options['suffixes']) .'</span>';
}
$output .= '</span>';
if($value == t('$0.00')){
$output = '<span class="'. implode(' ', $context['class']) .'">'.t('Call for price').'</span>';
}
return $output;
}
function marinelli_uc_product_price($price, $context, $options = array()) {
if ($price !=0) {
$output = '<div class="product-info '. implode(' ', (array)$context['class']) .'">';
$output .= uc_price($price, $context, $options);
$output .= '</div>';
}
return $output;
}
Module Dependencies:
- Ajax
- Ajax thickbox plugin
This module was sponsored by JesoX
Project Information
- Module categories: E-commerce
- Maintenance status: Unknown
- Development status: Unknown
- Reported installs: 34 sites currently report using this module. View usage statistics.
- Last modified: February 26, 2010