torgosPizza wrote:The only

Posts: 91
Joined: 11/06/2007
Bug FinderGetting busy with the Ubercode.

torgosPizza wrote:
The only usability issue I've really come into contact with is the degradation of Javascript in the shopping cart (fetching quotes and displaying the payment method, especially).. but if people don't have JS enabled that's their own fault Smiling

I wrote a module that simply changed the shopping cart checkout link to go to a 'how to enable javascript' page if javascript is disabled. If javascript is enabled then javascript sends the user, via the click of the button, to the checkout. It's a very simple workaround to this issue.

As far as the /cart checkout button, I used form_alter() include a hidden field with a simple value of '0', then if javascript is enabled it will change the value to '1'. Also using form_alter() I changed the submit function to a copy of the submit function that depending on the value of the hidden field would redirect to either the checkout page (hidden field value of 1) or the enable javascript help page (hidden field value of 0).

The only issue I had in doing this was in the Ubercart's own cart theme function, it specifies the exact form fields to print. The problem with this is my hidden field that is added via form_alter() did not get printed. This issue can be found with a patch here

I would like to see the patch to the theme_uc_cart_view_form() be added as is or some variation there of for beta, as well as at least the simple javascript degradation as I have mentioned above. If any one has need of my custom module for the javascript degradation, let me know.

Preparing for Ubercart 1.0 beta By: Ryan (22 replies) Fri, 01/04/2008 - 18:30