7 replies [Last post]
antiorario@drupal.org's picture
Offline
Bug Finder
Joined: 01/10/2008
Juice: 23
Was this information Helpful?

I don't think this whole post counts as a bug report, but the issues I'm pointing out are related, so I'll list them together.

I'm very new at Übercart, so maybe I overlooked something. (But after struggling for two months with the eCommerce modules I feel like I'm breathing again.)

  1. I'm setting up a product that assigns a new role then makes it expire at a given time (in a month, in my test). In this case I chose not to display the item quantity in the cart by setting "Default quantity to add to cart" to blank or zero. Unfortunately in either case the quantity box still shows up in the cart. Bug?
  2. As a (partial) alternative, I thought that maybe the quantity could be used to purchase, for example, multiple subscriptions. What I mean is, if I buy 3 monthly subscriptions, the assigned role should be extended by 3 months. But it isn't. The right math is done if a single subscription is bought repeatedly, that is one single item per transaction, but if I buy 3 items in one transaction, the role extension still increases by one month. My idea is that with these types of products, the role expiration period specified by the admin should be multiplied by whatever the customer enters as item quantity.
  3. An option that doesn't seem to be present is the possibility to remove a role when another is added – hence, the expiration will have to give the fomer role back.
  4. Expiration dates should be manually editable by an admin.

That is all for the moment. I hope I was clear enough.

Thanks.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Role expiration issues

+1 for these changes to the way roles work.

I agree that if someone purchases 12x of a one-month subscription, that should be a year's worth.

And then one could setup a Discount formula in uc_discounts to give them a free month if they buy 12? (In other words give them 13 months for the price of 12). Something like that would be excellent.

--
Help directly fund development: Donate via PayPal!

Shawn Conn's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 916
Re: Role expiration issues

Some good ideas here antiorario.

1> You'd have to ask Ryan or Lyle as I didn't write the uc_cart module or post an bug issue.
2> I like this idea. It will be easy to implement as well. I'll try to fit it in to uc_roles before the next release.
3> I guess I'm not seeing the usefulness of this idea. Users can already hold multiple roles. If one role expires there other roles that the user could already have. Is there particular instance of where you might need a set of mutually exclusive roles?
4> This is already possible. Admins who can administer users can go to user/*/edit and edit the expiration date under the "Role expirations" fieldset.

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

antiorario@drupal.org's picture
Offline
Bug Finder
Joined: 01/10/2008
Juice: 23
Re: Re: Role expiration issues

Thanks for your feedback, Shawn.

I've had little time for Übercart in the past few days, so I'm late on the response. But today I installed the new beta, and I can be more complete in my reply.

  1. Still as before. I'll check whether I'm doing something wrong, or I'll file a specific bug report.
  2. This totally works now, thanks! (So now basically my issue is solved.)
  3. I guess removing a role while adding one isn't always necessary, except if one wants to make sure that users with the upgraded role can't buy any upgrades until the role expires. So: basic role -> product is available, role upgradable; upgraded role, basic role removed -> product is not available, role extensions not available. (A solution for control freaks, I realize that.)
  4. Got it. I hadn't looked carefully enough.

Once again, thanks a lot.

antiorario@drupal.org's picture
Offline
Bug Finder
Joined: 01/10/2008
Juice: 23
A use for the role-removal option

Shawn, I reopen this thread since the issue (item 3 above) was first mentioned here. Obviously, I'm not saying this is a must-have feature, but I still thought I'd provide you with a real-world situation.

Let's say I have a "standard" user role which can be upgraded to a "pro" role. OK, this can be done. Pro users can access information that standard users can't, so naturally having standard+pro roles works perfectly.

Let's also say that I have a block with Google ads displayed for standard users. If I want to hide the ads block from pro users (the idea being "They are paying, they might as well be ad-free"), I can make the block invisible to pro users. Unfortunately, though, since my pro users technically have the standard role too, the block still shows.

I can definitely come up with a custom PHP snippet for block-visibility options, something that says that if a user has both roles, then the block should be hidden, but it sounds like something redundant, considering that it can be accomplished on a per-user basis simply by unticking the standard role. And to do that automatically, there should be a role-removal option in uc_roles. The removed role would, naturally, be given back at expiration.

This is, by the way, something that the eCommerce package has – still not worth the hassle of even trying to use eC...

Once more, thanks.
Tony

seedseller's picture
Offline
Joined: 11/27/2007
Juice: 141
Re: A use for the role-removal option

It is not clear if you have found the fix to item #1 in your listing. If not, check out Administer/Store administration/Configuration/Table display settings. When you get there, click on the uc_cart_view_table link. Uncheck the Qty. box and and save your options. Now the quantity box will not display in your cart.

antiorario@drupal.org's picture
Offline
Bug Finder
Joined: 01/10/2008
Juice: 23
Re: Re: A use for the role-removal option

Actually I hadn't, I had just gone a different way. But thanks!

BlindWolf8@drupal.org's picture
Offline
Joined: 01/30/2008
Juice: 72
Re: Re: Re: A use for the role-removal option

I just wanted to chime in here and say that I also found this bug (hide quantity) in Beta 4, and I'm assuming it's still present in Beta 5. The only problem I see with hiding the Quantity Amount in the Cart via the table option is that it will leave users unable to change or view their product quantities for products that allow the user to change said option.