Jump to content

Invoice PDF missing Bank Account Information


MrTouch

Recommended Posts

Hello

 

I am new to Prestashop and got myself a theme, the developer which made the theme said that this bug was a prestashop core issue and not error caused by the template.

Now, when i am on the Order-history page. I have this "pdf" column where i can look at the invoice. but on the bottom of the invoice I get a Table where my information is missing. I tried to find where it get's this data from but I wasn't successful.

 

What I found out is:

 

Displaying this information happens in HTMLTemplate.php: 

$hook_name is "displayPDFinvoice"

public function assignHookData($object)
{
$template = ucfirst(str_replace('HTMLTemplate', '', get_class($this)));
$hook_name = 'displayPDF'.$template;
$this->smarty->assign(array(
'HOOK_DISPLAY_PDF' => Hook::exec($hook_name, array('object' => $object))
));
}

 

 

Here it returns the not completed table:

Hook::exec($hook_name, array('object' => $object))

But i couldn't find out what happens next.

 

 

In the Attachments I added 2 screenshots, one where i click on the order-history page. And the second one is the pdf itself.

 

support.png

Edited by MrTouch (see edit history)
Link to comment
Share on other sites

  • 2 months later...

Hey!

This block appear when you have PayPal module activated. I don't know how to fill in those info, but I know how to remove this block (that's what I did).

You go to 'modules/ modules positions' choose PayPal and unhook PayPal from displayPDFinvoice hook

:)

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...