Ubercart 2.0 Announcing Its Candidacy

Ahh, what a night. Lyle and I sat down to dinner at Chick-fil-a sometime around 6 PM for a good bite to eat. We hacked on Ubercart after dinner until the restaurant closed at 10 PM. We came home and watched some anime to take our minds off the code for a bit. Then we got back to work.

Now, a full 9 hours after our evening began, we're happy to delivery to you all the first every Ubercart 2.0 release candidate. Smiling

We've added several bugfixes since the last beta release, but the significant change here is the addition and implementation of a price handler API that allows for pluggable price altering and display formatting. Bwuh? That's right, prices now have a system through which they can be altered (discounts? fees? tax included? you bet!) and formatted (replacing the old function uc_currency_format() with a configurable formatter). While this doesn't outright solve issues like VAT support and robust discounts, it establishes a single core system through which these things can be handled.

This is great news! But it's not enough. Now that the system is in place, modules that have traditionally done these things through workarounds and patches will need to be updated to use the new system. We've given the work in progress Discount Framework module a head start, pushing it toward discounts through Conditional Actions + the price handler. Hopefully we'll see contributions like the VAT module, Multi-currency module, and others also take advantage of the system.

It's been a long road, and this release is far overdue. We hope the delays pay off in the long run. Thanks again to the many contributors. We're happy to keep filling up our release notes with names of new contributors. I haven't kept an overall count, but we've had something like 30+ new people contributing patches and code that directly affects core Ubercart modules. That doesn't even begin to capture all those doing testing and providing bug reports and features suggestions.

Thanks to everyone, and get it while it's hot! Remember to backup your sites and run a proper update. Cool

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15459
Re: Ubercart 2.0 Announcing Its Candidacy

Just a quick heads-up to forestall any duplicate reports... there was a function name typo in the attribute module that will result in a PHP error on a cron run being logged to your watchdog. Never fear, it has already been fixed thanks to sammys, and you can update your file if need be using the patch in this comment.

trimax's picture
Offline
Joined: 04/18/2009
Juice: 2
Re: Ubercart 2.0 Announcing Its Candidacy

Thanks guys! Great work even though it took some time reach this point, it is definitely worth the time waiting!

japerry@drupal.org's picture
Offline
Bug FinderGetting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 248
Re: Ubercart 2.0 Announcing Its Candidacy

thats awesome to hear the good progress that started mulling about at drupalcon. I for one am very excited to be able to easily adjust prices =D

..that said, heh upgrading should be fun. Waiting for all my discount hackery for a client to break Eye-wink

EDIT: okay what gives guys?

We've added several bugfixes since the last beta release, but the significant change here is the addition and implementation of a price handler API that allows for pluggable price altering and display formatting.

'Significant Change'?? Then that means this is NOT a release candidate! this is another beta! potentially more beta then Beta6! It breaks a bunch of core and contrib modules, so calling it a RC is misleading people to think the whole system is more stable than beta 6.

Don't get me wrong, the price API is badly needed, but it shouldn't be rolled new into a RC. If you're going to make a significant change, it needs to stay in beta, and have a firm warning saying it will probably break your system.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4111
Re: Re: Ubercart 2.0 Announcing Its Candidacy

I agree with japerry. There's nothing wrong with rolling out another beta - it just means more community testing and also allows us Contrib devs to work the new API changes into our own modules to keep up with the Joneses. A change this major deserves some additional field time to get the kinks worked out.

--
Help directly fund development: Donate via PayPal!

j0rd's picture
Offline
Getting busy with the Ubercode.
Joined: 07/16/2008
Juice: 453
Re: Re: Re: Ubercart 2.0 Announcing Its Candidacy

agree with japerry...but I'm using -dev anyways, so don't really care Laughing out loud

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4111
Re: Re: Re: Re: Ubercart 2.0 Announcing Its Candidacy

Well, that's fine, but for a package to be labeled Release Candidate, it should include code that's stable and not beta. Many people are hesitant to use something labeled Dev on a production site, for obvious reasons.

--
Help directly fund development: Donate via PayPal!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15459
Re: Re: Re: Re: Re: Ubercart 2.0 Announcing Its Candidacy

For what it's worth, nothing is broken by this release. All core and contrib modules work fine, because uc_currency_format() hasn't gone anywhere. Contrib modules might not have added functionality, but they certainly don't have less. The new price handler is basically a wrapper around that function that is a little more elegant than just making that into a theme function. Release candidate ahoy!

In other words, with our testing over the last couple of weeks, we feel comfortable enough putting this out there as a 2.0 release but are obviously still dependent on feedback to make sure it's good to go. The patch that was put in was a work in progress for over a month on d.o, and we did as much as we possible could have to put people's eyes on it. I'm not sure calling this a beta and asking one more time for people to look into the price handler would've generated any significant further feedback than we'd been getting. When it came down to it, Lyle and I just had to spend two long hackathons making sure it was good to go. Now we'll see if it's good enough to be a 2.0. I promise we wouldn't have called it a release candidate if we didn't think it could handle the scrutiny. Eye-wink

So, semantics about releases aside, post up those issues and we'll continue to address them as always.

mrmeech's picture
Offline
Joined: 03/11/2009
Juice: 66
FYI - downloads page is

FYI - downloads page is still on UC2-Beta 6. Smiling

TutusForToddlers's picture
Offline
Joined: 11/17/2007
Juice: 158
SWEET!!! Thanks for all the

SWEET!!!

Thanks for all the hard work Lyle and Ryan and everyone else who hacks the Uber code.

Thanks,
Claire
Tutus for Toddlers sells Tutus using UberCart for e-commerce with Drupal.

Thanks,
Claire
Tutus for Toddlers sells Tutus using UberCart for e-commerce with Drupal.

aramsumair's picture
Offline
Joined: 04/20/2009
Juice: 2
add to cart error anonymous

see here

http://www.ubercart.org/forum/bug_reports/9487/add_cart_error

i am having this problem with this release also .. you can test it out here http://www.gamefanattic.com/ try adding something to your cart as a anonymous user. thanks.

duntuk's picture
Offline
Joined: 11/02/2007
Juice: 77
Re: Ubercart 2.0 Announcing Its Candidacy

nice. Just as everyone else, I'm very excited to see ubercart 2.0 approach final status.

With all the benefits of drupal, I believe ubercart is the best open source cart available.

So just want to let you know Ryan, your work is greatly appreciated.

Thank you Smiling

sphism's picture
Offline
Bug Finder
Joined: 11/29/2007
Juice: 215
Re: Ubercart 2.0 Announcing Its Candidacy

Great stuff...well done...and thanks a lot for the new prices api, VAT and discounts have always been a headache for us.