I'm receiving the following two errors when I review the order at checkout after installing UC Restrictions:

Notice: Undefined index: cart_contents in uc_restrictions_delivery_zone_checkout_form_validate() (line 115 of C:\wamp\www\drupal\sites\all\modules\uc_restrictions\uc_restrictions_delivery_zone\uc_restrictions_delivery_zone.module).
Warning: Invalid argument supplied for foreach() in uc_restrictions_contains_restricted() (line 237 of C:\wamp\www\drupal\sites\all\modules\uc_restrictions\uc_restrictions.module).

Any ideas? I'm using Drupal 7.10.

Thanks

Comments

bob.hinrichs’s picture

Thanks for this. They have changed the structure of the checkout forms. I've tried here to adapt the code to it. However I am getting a slight problem, in that the form will not fill from a pre-entered selected address (only billing, not delivery). I don't see how this is the result of my module but it could be. Let me know if you are still having difficulties.