Alternative Price

Contrib type: 
Module
Status: 
Complete and working

Downloads

Latest version: 
5.x-1.0
Compatibility: 
Ubercart 1.x

The Alternative Price modules enables a new product feature for store admins. This feature allows products to have a 2nd price associated with a product. This 2nd price can have its value adjusted based on previous purchases. An admin can also specify custom labels to differentiate between the standard and 2nd price. Admins using views on their site can filter and display the alternative price in views.

In addition to these features, any product nodes can be designated as unique. Unique product nodes will become un-published once a customer first purchases the product. Also, another field can be displayed on product pages displaying attributes that customers have previously selected when purchasing the product.


PreviewAttachmentSize
uc_alternative_price.tar.gz5.8 KB
bloggybusiness's picture
Offline
Joined: 11/08/2007
Juice: 23
One button interface

Hi,

I propose a few new lines to this module: it allows to choose to display both Standard and Alternative buttons or ONLY the Alternative button :

1) Modify the display:
In function uc_alternative_price_form_alter($form_id, &$form)

if (!empty($alternative_price->standard_button)) {
$form['submit']['#value'] = $alternative_price->standard_button;
}

becomes:

if (!empty($alternative_price->standard_button)) {
$form['submit']['#value'] = $alternative_price->standard_button;
}
if (variable_get('uc_alternative_price_one_button', FALSE)) {
$form['submit'] = array();
}

2) Add admin option to deal with it:
In function uc_alternative_price_feature_settings()

$form['uc_alternative_price_unpublish_alternative'] = array (
'#type' => 'checkbox',
'#title' => t('Unpublish "Unique" items only when purchased with an alternative price.'),
'#default_value' => variable_get('uc_alternative_price_unpublish_alternative', FALSE),
'#description' => t('If checked, products marked "Unique" will only become unpublished if they are purchased with an alternative price.'),
);

becomes:

$form['uc_alternative_price_unpublish_alternative'] = array (
'#type' => 'checkbox',
'#title' => t('Unpublish "Unique" items only when purchased with an alternative price.'),
'#default_value' => variable_get('uc_alternative_price_unpublish_alternative', FALSE),
'#description' => t('If checked, products marked "Unique" will only become unpublished if they are purchased with an alternative price.'),
);
$form['uc_alternative_price_one_button'] = array (
'#type' => 'checkbox',
'#title' => t('Do not view Standard price button.'),
'#default_value' => variable_get('uc_alternative_price_one_button', FALSE),
'#description' => t('If checked, only the Alternative price button will published on the Product node.'),
);

Feedback welcome.

Alexandre

peps's picture
Offline
Joined: 09/08/2008
Juice: 2
Hi there, Does the module

Hi there,

Does the module supports multiple alternative prices? And does it support/assign alternative price by role?

Thanks!

himerus's picture
Offline
Joined: 09/20/2008
Juice: 17
Port to Drupal 6?

I'd love to see this module ported to Drupal 6. A current personal (non-client) project of mine could use exactly this.

Are there any plans for an upgrade? Otherwise, I'll just have to hack it till I can get it to work.

Jake Strawn
President Himerus Inc.
http://himerus.com
http://himerusinc.com

Jake Strawn
http://himerus.com

stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575
Re: Port to Drupal 6?

We sponsored this module and don't know of anyone actively working on it. We will at some point have this ported when we upgrade our site to Drupal 6, but that will probably be months away.

Gorgeous original Drupal themes (and Ubercart themes!) ~ Psst: more Ubercart themes on our new site

jugney's picture
Offline
Joined: 06/03/2008
Juice: 202
Not working

I installed this module last week because I was interested in the "Unique Product" feature, which unpublished a product after the first purchase.

I created a few test products and enabled this feature, but none have unpublished after being purchased. Can anyone help with this?

Thanks,
Jugney

greggles's picture
Offline
Joined: 12/12/2007
Juice: 97
move to drupal.org?

Anyone feel like moving this to drupal.org so we can take advantage of the cvs and issue queue?

If I don't hear a response in the next little while I'll probably do that myself, but want to ask first out of respect to current maintainers.

Greggles Drupal Articles

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15453
Re: move to drupal.org?

Hey Greg, I'd say go ahead and take it. Shawn isn't really working on Ubercart related stuff any more. Smiling

greggles's picture
Offline
Joined: 12/12/2007
Juice: 97
cool - now done

Alrighty - this is now done: http://drupal.org/project/uc_alternative_price

To anyone interested in this module, let's keep all the discussion/development on drupal.org as much as possible.

--
Greggles Drupal Articles | http://knaddison.com/category/drupal

habeeb24's picture
Offline
Joined: 02/14/2011
Juice: 6
good one

yes, it has been many other futures like a modules & customization and everything,, this is main advantages in drupal.. drupal web developer