3 replies [Last post]
stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575
Was this information Helpful?

Hi, I'm exploring using Ubercart on a project and need the following scenarios to be possible:

Each product has two very distinct options in terms of pricing (think "rent vs. buy"). I know you can change options via the product attributes that affect price, but I need to have both prices displayed everywhere, like listing pages, not just in a drop down. And given the following features, I don't think separate products is a good solution...

Also, one of the prices needs to be related to the number of downloads a product has. For each purchase of a product, the "buy" price should go down by $X.

Finally, when a customer purchases the "buy" option (as opposed to "rent"), the product needs to be made unavailable (for rent or buy) on the site.

Is there any simple/roundabout way to do any of these things in Ubercart currently? Or, more likely, what is a fair bounty to implement these features quickly?

Thanks!

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

Shawn Conn's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 916
Re: Bounties for file product download

I'm currently working on bringing file downloads to core. Here's my thoughts:

1> Displaying all possible prices, via a product attribute, everywhere would require some custom coding beyond the scope a file product module. I'm not 100% familiar with uc_product module, perhaps it could be implemented via a product node theme functions? You'd have to ask Ryan or Lyle on that one.

2> Once the file download module is brought to core you should be able to do this. You can create an attribute, named something like "number of downloads", for a value of 1 you create a price of 0, for a value of 2 you create a price of -1, and so on. In the upcoming file download module, there will be a hook created that you can call to determine whether or not a user can still download a product. Based on the attribute value chosen, this hook could limit how many downloads a customer gets.

3> This would be out of the scope of the file product module. You'd need some custom module to keep track of product nodes (and attributes) a customer purchased. Based on that, you could have the module disable the add-to-cart button.

Perhaps you could elaborate further what is being bought and rented? I'm thinking perhaps our current uc_roles module might be a possible solution depending on what you're trying to accomplish.

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575
Re: Re: Bounties for file product download

Thanks Shawn. By the way, I'm finally tinkering with Ubercart for the first time, and I'm really enjoying it so far. Didn't get a chance to see the sessions on it at Drupalcon, but now wishing I had sat in on one!

Anyway... your input on #1, definitely sounding more appealing than dealing with separate products that are essentially the same but would need to be linked. I'll poke around with some theming.

I'm not sure I follow with your conclusion for #2 -- I'm not looking to limit downloads, but to change the price of an attribute based on how many purchases the product has had. Or maybe I'm just not reading something right?

As for #3, I was actually thinking more of unpublishing. I probably wasn't too clear, but they shouldn't be visible at all if someone has purchased the product outright. Buy and rent aren't really the best words here either, but they were what my tired brain came up with Smiling Basically the customer is choosing between purchasing an item that others are also purchasing in the future, or deciding to buy it outright and uniquely their own for a higher price.

I'm assuming uc_roles does not work for particular attributes though, just whether a product is purchased or not?

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

mpamphile@drupal.org's picture
Offline
Joined: 01/13/2008
Juice: 5
Hi guys I have a similar