Setono / SyliusGiftCardPlugin

Sell gift cards on your Sylius store and let users use them in the checkout process
MIT License
45 stars 39 forks source link

Add twig rendering for gift card configuration template #214

Closed loevgaard closed 1 year ago

loevgaard commented 2 years ago

Fixes #210

This PR will allow the user to edit the gift card template as twig instead of only being able to change the CSS.

codecov[bot] commented 2 years ago

Codecov Report

Base: 49.48% // Head: 46.79% // Decreases project coverage by -2.68% :warning:

Coverage data is based on head (479a3ca) compared to base (7f8d2af). Patch coverage: 30.23% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 0.12.x #214 +/- ## ============================================ - Coverage 49.48% 46.79% -2.69% - Complexity 542 562 +20 ============================================ Files 104 106 +2 Lines 1732 1761 +29 ============================================ - Hits 857 824 -33 - Misses 875 937 +62 ``` | [Impacted Files](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono) | Coverage Δ | | |---|---|---| | [...rc/Controller/Action/DownloadGiftCardPdfAction.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL0NvbnRyb2xsZXIvQWN0aW9uL0Rvd25sb2FkR2lmdENhcmRQZGZBY3Rpb24ucGhw) | `0.00% <0.00%> (ø)` | | | [src/EmailManager/GiftCardEmailManager.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL0VtYWlsTWFuYWdlci9HaWZ0Q2FyZEVtYWlsTWFuYWdlci5waHA=) | `0.00% <ø> (ø)` | | | [src/Form/Type/GiftCardConfigurationType.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL0Zvcm0vVHlwZS9HaWZ0Q2FyZENvbmZpZ3VyYXRpb25UeXBlLnBocA==) | `0.00% <0.00%> (ø)` | | | [...rovider/DefaultGiftCardTemplateContentProvider.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL1Byb3ZpZGVyL0RlZmF1bHRHaWZ0Q2FyZFRlbXBsYXRlQ29udGVudFByb3ZpZGVyLnBocA==) | `0.00% <0.00%> (ø)` | | | [src/Renderer/PdfRenderer.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL1JlbmRlcmVyL1BkZlJlbmRlcmVyLnBocA==) | `0.00% <0.00%> (ø)` | | | [...zer/Normalizer/GiftCardConfigurationNormalizer.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL1NlcmlhbGl6ZXIvTm9ybWFsaXplci9HaWZ0Q2FyZENvbmZpZ3VyYXRpb25Ob3JtYWxpemVyLnBocA==) | `0.00% <0.00%> (ø)` | | | [src/Serializer/Normalizer/GiftCardNormalizer.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL1NlcmlhbGl6ZXIvTm9ybWFsaXplci9HaWZ0Q2FyZE5vcm1hbGl6ZXIucGhw) | `0.00% <0.00%> (ø)` | | | [src/Twig/Extension/PdfExtension.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL1R3aWcvRXh0ZW5zaW9uL1BkZkV4dGVuc2lvbi5waHA=) | `0.00% <ø> (ø)` | | | [src/Model/GiftCardConfiguration.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL01vZGVsL0dpZnRDYXJkQ29uZmlndXJhdGlvbi5waHA=) | `81.33% <50.00%> (-2.67%)` | :arrow_down: | | [...mandHandler/CreateGiftCardConfigurationHandler.php](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono#diff-c3JjL0FwaS9Db21tYW5kSGFuZGxlci9DcmVhdGVHaWZ0Q2FyZENvbmZpZ3VyYXRpb25IYW5kbGVyLnBocA==) | `77.77% <77.77%> (ø)` | | | ... and [6 more](https://codecov.io/gh/Setono/SyliusGiftCardPlugin/pull/214/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Setono)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.