Posted: July 21, 2017 at 12:08 am
|
Hello , We have created a custom Receipt message template for an event by choosing Create custom button from Event Espresso-> Default Message Template. Selected the custom template for that particular event for HTML Receipt. For all others the template is set to global in the event. |
Hi Rashmin, Which event is the template set on? I can’t see it in use at all on the site currently. (You sent log in details for your other thread so I had a look whilst checking into the payment logs). Can you setup the custom template to be in use on whichever event you want to use so I can view the problem, please. |
|
|
Hello Tony, I had switched back to Global to check whether it downloads for the global. I have run thru a new registration event “Sarvajanik Ganeshotsav 2017” with custom Template,https://www.netherlandsmarathimandal.org/screen-shot-2017-07-21-at-18-08-38/ Also, with respect to previous thread, the invoice displays Incomplete and the payment status was not returned. But after few more seconds/minute all the status changed to approved & complete. |
Whenever you click to view a template from the registration list view it will use the current template set on the event not the one used during the registration.
It’s loading the home page of your site without the CSS – http://take.ms/i9T6g There are a couple of problems with the receipts currently, your custom template has invalid HTML within the template, the browser will display that fine but the library used to generate the PDF’s is MUCH more strict on having valid HTML. You’ll need to go through and confirm the output is correct, a quick example is There may be more but in short if you are editing the templates you need to make sure you edits are still valid HTML. Also you currently have WP Super cache set to cache the receipts – http://take.ms/tJ6Lu Those should not be cached as they are unique for each use, by default WP Super cache will not cache those pages as they use query strings so have you altered the caching settings?
You posted you have been having hosting issues and this is now resolved, however to valirfy, Mollie uses a process similar to PayPals IPN’s. When your user makes a payment the user is directed back to the site, in the meantime mollie sends a request to YOUR site to update the registration. If mollie is delayed or you site i slow to load that request then the registrations show pending payment, then the request hits your site and updates. |
|
|
Hello Tony, Right, the HTML edits were not correct, but it wasn’t giving any error with the normal browser display, hence didn’t realise it. Thanks for pointing that out. On the WP_super_cache, didn’t change anything there. just updated with the recent update. Plus I noticed that it was caching wp-links-opml.php. Thanks |
Great, so it’s working now? The browser is much more forgiving of invalid HTML and will do its best to try and figure out what its supposed to be doing. PDF libraries simply don’t allow it and just fail, you can look within the error log and you’ll likely find some errors there relating to DOMPDF, however they are usually pretty cryptic and don’t help much.
That’s not from Event Espresso so I’m not sure. |
|
|
Hello, I used the custom template as we had to make the registrations live. |
The support post ‘Custom Receipt Template doesn't download the PDF’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.