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 %}