diff --git a/_dev/css/components/checkout.scss b/_dev/css/components/checkout.scss index 5456a346..fd1346a1 100644 --- a/_dev/css/components/checkout.scss +++ b/_dev/css/components/checkout.scss @@ -369,10 +369,6 @@ body#checkout { } .delivery-options { - > .row { - border-right: 0.1rem solid darken($gray-lighter, 20%); - } - .delivery-option { min-height: 80px; padding: 0.9375rem 0; @@ -407,6 +403,10 @@ body#checkout { width: 3.125rem; } } + + .carrier-extra-content { + padding-block-end: 1rem; + } } .carrier-delay, diff --git a/_dev/js/checkout.js b/_dev/js/checkout.js index 28032901..d77d9148 100644 --- a/_dev/js/checkout.js +++ b/_dev/js/checkout.js @@ -75,7 +75,12 @@ $(document).ready(() => { } // Hide all carrier extra content ... $(prestashop.themeSelectors.checkout.carrierExtraContent).hide(); - // and show the one related to the selected carrier - params.deliveryOption.next(prestashop.themeSelectors.checkout.carrierExtraContent).slideDown(); + + // Show the one related to the selected carrier + const carrierExtraContent = params.deliveryOption.next(prestashop.themeSelectors.checkout.carrierExtraContent); + + if (carrierExtraContent.html().trim() !== '') { + carrierExtraContent.slideDown(); + } }); }); diff --git a/templates/checkout/_partials/steps/shipping.tpl b/templates/checkout/_partials/steps/shipping.tpl index 837cfc2b..93409880 100644 --- a/templates/checkout/_partials/steps/shipping.tpl +++ b/templates/checkout/_partials/steps/shipping.tpl @@ -41,7 +41,7 @@ {block name='delivery_options'}
{foreach from=$delivery_options item=carrier key=carrier_id} -
+
@@ -71,7 +71,7 @@
-