Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing/previewing and debugging Order PDFs #60

Open
mark-chief opened this issue Aug 11, 2023 · 1 comment
Open

Editing/previewing and debugging Order PDFs #60

mark-chief opened this issue Aug 11, 2023 · 1 comment
Assignees

Comments

@mark-chief
Copy link

Description

I'm having a very frustrating time edit/debugging Order PDFs (Using Snapshot +. Stripe Payments).

A few things:

  1. Stripe Payments Order PDF Template Field in the settings doesn't work if you add the .twig extension
  2. Override file - this option doesn't appear to work, or there seems to be some sort of cache in place because when i make a change to the order pdf template and check, the order template rendered doesn't reflect the changes I have made, only after a period of time.
  3. If I delete a PDF from my assets folder, It will regenerate it as expected, but it will use and old cached version which doesn't exist, even If i completely empty the pdf template and make it blank, it will somehow regenerate it from a old version - i have tried clearing craft data cache too.
  4. I'm unable to render fields from my Globals in the templates e.g. {{ global.customField }}
  5. This error appears in my logs each time a PDF is viewed. even if the pdf template is a blank file, it will log this error.
2023-08-11 10:37:10 [-][1][-][warning][craft\models\FieldLayoutTab::init] Invalid field layout element config: Invalid field UID: 533a0dd2-60b5-40f5-bdc6-de13b655a97a
2023-08-11 10:37:10 [-][1][-][error][yii\base\InvalidArgumentException] yii\base\InvalidArgumentException: Invalid field UID: 533a0dd2-60b5-40f5-bdc6-de13b655a97a in /home/runcloud/webapps/masterclass/app/craft/vendor/craftcms/cms/src/fieldlayoutelements/CustomField.php:109

If you're able to help with the above, or let me know what I am doing wrong that would be great - as I am literally spending hours trying to work around this :)

Thanks!

Additional info

  • Craft version: 3.8.16
  • PHP version: 7.4.33
  • Snapshot version: 1.2.9
  • Stripe Payments version: 4.1.2 Lite
@andrelopez andrelopez self-assigned this Aug 11, 2023
@andrelopez
Copy link
Member

andrelopez commented Aug 11, 2023

Hi @mark-chief

  • I am looking into your first two issues
  • about the cache issue, could you please try to pass a dynamic name for example that includes the time with milliseconds? what is the current value of Stripe Payments Order Filename Format on your settings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants