User side preview error(s)

mitchie
mitchie
Offline
0
Hi,
1. I get two different rendered layout using default invoice bootstrap in fronted and backend. It should be nice to get the same in both... :-) (see attachments). [FIXED]

2. Clicking on pdf icon I get the online invoice view. Basically with pdf icon I get the same result as the one to his left (see attached image buttons.jpg). The problem occur only with SEF and add suffix preferences both enabled. It works fine with just one of them enabled.
After some test I understand that the script miss 'format' attribute in the url.
With both SEF and suffix enabled the url become like this:
https://mywebsite.com/index.php/en/users-area/invoices/18-17-2014-e.dompdf
instead with just one of the option enabled 'format=dompdf' is always there.

Any hint?
Due to the privacy I'd like to fix it by myself following instructions.
Thanks in advance.
Responses (2)
  • Accepted Answer

    Tuesday, October 14 2014, 05:38 PM - #Permalink
    0
    2. I've actually seens this a couple times. strangely enough, it doesn't happen always, only on some installations, which makes me think it can be related to .htaccess directives. Joomla has had issues with special URLs when the suffix is turned on.
    I always recommend to turn it off.

    but well, there's the "easy hack", which is to go to the helpers.php file in Invoice Manager, and you will find one function that creates the PDF button.
    basically what you need to do is to add (again!) the format=dompdf string to the URL generated, but OUTSIDE the JRoute function, this way it will always be appended "raw" and the SEF system won't miss it...
    The reply is currently minimized Show
  • Accepted Answer

    mitchie
    mitchie
    Offline
    Tuesday, October 14 2014, 05:53 PM - #Permalink
    0
    Hi,
    thank you for your fast reply. Now it works fine.
    The reply is currently minimized Show
Your Reply