Set a message for at the top of the Donate page text does not appear at top of /donate page.

Using 6.x-2.0-rc7 Ubercart. Using Burnt theme.

Thanks - appreciate you work on this module.

Comments

rick hood’s picture

It seems like something like this needs to be added around line 200 in uc_donate.page.inc:

 else {
    $span = variable_get('uc_currency_sign', '$') .'<span></span>';
  }

/*---begin addition---*/
  $donate_header = variable_get('uc_donate_description','');
  $output = '<div id="donate-header">' . $donate_header . '</div>';
/*---end addition---*/
  
  $output .= '<div id="donate-page">';
  $output .= '<div id="donate-items">'. $items .'</div>';
obrienmd’s picture

Anyone know any more on this? I'm hacking it using a block right now, but it would be nice to have this feature working from the donation config. I tried to add the code in #1, but no no avail.

matthewn’s picture

Confirming that the patch in #1 works for me.

Anonymous’s picture

I've can also confirm that the above fix works. I made a nearly identical fix to my code before seeing this issue. I've never submitted a bug fix to any Drupal project, but I'd be happy to submit my fix and figure out how to update the package. It looks as if the original developer is no longer supporting it.

ITMonkey’s picture

@obrienmd <- you need to add a full stop before the equals sign in the first line after the addition, your default page will not have it there as it's the first line of the return code, not a continuation. Without the . you are effectively telling the page 'This is the first bit' and then 'this is the first bit' again so it ignores the first first bit ;)

Patch works for me and thankyou Rick Hood

ITMonkey’s picture

Sorry, added it as a comment and not a reply, so you probably won't get notified <-- check my comment (#5)

obrienmd’s picture

Patch now works for me to. Can someone commit this to -dev?

obrienmd’s picture

Status: Active » Reviewed & tested by the community

Sorry, marking as reviewed and tested by community.