From 5fe20187e15f4b0d28efdb42d8e37f0024dd57c7 Mon Sep 17 00:00:00 2001 From: Pete Eveleigh Date: Thu, 19 Sep 2024 12:44:33 +0100 Subject: [PATCH] Add settings for showing and customising made a mistake section on order confirmation --- src/config.php | 12 ++++++++++++ src/templates/checkout/order.twig | 16 ++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/config.php b/src/config.php index f599eab..6dace4a 100644 --- a/src/config.php +++ b/src/config.php @@ -40,6 +40,10 @@ // Whether or not to enable CSS page transitions //(see https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API#browser_compatibility for browser compatibility) 'enablePageTransitions' => false, + + // Whether or not to show the "Made a mistake" function on the order completed page + // If disabled then the heading and text will not be displayed + 'enableMadeAMistake' => false, ], // Branding Settings 'branding' => [ @@ -127,5 +131,13 @@ 'elementHandle' => '', 'fieldHandle' => '', ], + 'mistakeHeading' => [ + 'elementHandle' => '', + 'fieldHandle' => '', + ], + 'mistakeText' => [ + 'elementHandle' => '', + 'fieldHandle' => '', + ], ], ]; diff --git a/src/templates/checkout/order.twig b/src/templates/checkout/order.twig index 1bacc35..73947a9 100644 --- a/src/templates/checkout/order.twig +++ b/src/templates/checkout/order.twig @@ -91,16 +91,16 @@ + {% if craft.fostercheckout.getOption('enableMadeAMistake') %} - + {% endif %}