Fatal error: Call to undefined function uc_cart_checkout_new_pane() in /var/www/drupal-5.3/sites/all/modules/uc_coupon/uc_coupon.module on line 470

This error occurs with both 5.x-1.x-dev and 5.x-1.2

Thanks..

Comments

jprieto’s picture

help i got same problem

jprieto’s picture

okay here is a solution

replace the following function with this code

function uc_checkout_pane_coupon($op, $arg1, $arg2) {
switch ($op) {
case 'view':
$description = t('Enter your coupon here.');
$contents['coupon'] = uc_textfield(t('Coupon Code'), $arg1->couponCode, FALSE, FALSE, 14);

return array('description' => $description, 'contents' => $contents);

case 'process':
$arg1->coupon = check_plain($arg2['coupon']);
return true;
}
}

the file to be updated can be found in

.......sites/all/modules/uc_coupon/uc_coupon.module

as always, backup files to be updated

please let me know if it worked for you

............... or if there is a better solution

enjoy!!

jprieto’s picture

UHM......

BUT I NOTICED THEN THAT SHIPPING DONT WORK

rickcohen’s picture

I ran into the same issue. Any news on a fix?

BlakeLucchesi’s picture

The issue is because this code was created for the alpha 6 version of UberCart. Since then they have been doing quite a bit of improvements to their system and thus their API has changed. I have not had the need to use UberCart since creating the module so I am currently unfamiliar with the new checkout system. If someone that has more experience would like to upgrade the module for the newer versions please let me know so I can make you a co-maintainer of the code.

Blake Lucchesi
blake@boldsource.com

longwave’s picture

Status: Active » Closed (fixed)