Ich habe das Problem, dass AGB und Widerrufs-PDFs in den Bestätigungs-E-Mails leer sind.
Der Code in der E-Mail müsste richtig sein:
{%- if shop.terms_of_service.body != blank -%}
{{ shop.terms_of_service | attach_as_pdf: “AGB” }}
{%- endif -%}
{%- if shop.refund_policy.body != blank -%}
{{ shop.refund_policy | attach_as_pdf: “Widerrufsbelehrung” }}
{%- endif -%}
Habt ihr eine Idee, was ich falsch mache?