diff --git a/dpdbaltics.php b/dpdbaltics.php index 7654451b..31f4d2ce 100644 --- a/dpdbaltics.php +++ b/dpdbaltics.php @@ -707,7 +707,7 @@ public function hookDisplayCarrierExtraContent($params) ); $return .= $this->context->smarty->fetch( - $this->getLocalPath() . '/views/templates/hook/front/pudo-points.tpl' + 'module:dpdbaltics/views/templates/hook/front/pudo-points.tpl' ); } @@ -1226,7 +1226,7 @@ public function hookDisplayOrderDetail($params) ] ); $html = $this->context->smarty->fetch( - $this->getLocalPath() . 'views/templates/hook/front/order-detail.tpl' + 'module:dpdbaltics/views/templates/hook/front/order-detail.tpl' ); return $html; diff --git a/src/Builder/Template/Front/CarrierOptionsBuilder.php b/src/Builder/Template/Front/CarrierOptionsBuilder.php index 473ded32..3eed8cb1 100644 --- a/src/Builder/Template/Front/CarrierOptionsBuilder.php +++ b/src/Builder/Template/Front/CarrierOptionsBuilder.php @@ -112,7 +112,7 @@ public function renderCarrierOptionsInProductPage() ]); return $this->context->smarty->fetch( - $this->moduleLocalPath . 'views/templates/hook/front/product-page-carriers.tpl' + 'module:dpdbaltics/views/templates/hook/front/product-page-carriers.tpl' ); } } diff --git a/src/Presenter/DeliveryTimePresenter.php b/src/Presenter/DeliveryTimePresenter.php index b2180fd3..5f50ea92 100644 --- a/src/Presenter/DeliveryTimePresenter.php +++ b/src/Presenter/DeliveryTimePresenter.php @@ -57,7 +57,7 @@ public function getDeliveryTimeTemplate($countryIso, $city) ); return $this->context->smarty->fetch( - $this->module->getLocalPath().'/views/templates/hook/front/carrier-delivery-time.tpl' + 'module:dpdbaltics/views/templates/hook/front/carrier-delivery-time.tpl' ); } } \ No newline at end of file diff --git a/src/Presenter/SameDayDeliveryMessagePresenter.php b/src/Presenter/SameDayDeliveryMessagePresenter.php index 4a58087f..d2b5c810 100644 --- a/src/Presenter/SameDayDeliveryMessagePresenter.php +++ b/src/Presenter/SameDayDeliveryMessagePresenter.php @@ -64,7 +64,7 @@ public function getSameDayDeliveryMessageTemplate() ); return $this->context->smarty->fetch( - $this->module->getLocalPath() . '/views/templates/hook/front/carrier-same-day-delivery-message.tpl' + 'module:dpdbaltics/views/templates/hook/front/carrier-same-day-delivery-message.tpl' ); } } \ No newline at end of file diff --git a/src/Service/CarrierPhoneService.php b/src/Service/CarrierPhoneService.php index 5febbb9b..ab32f290 100644 --- a/src/Service/CarrierPhoneService.php +++ b/src/Service/CarrierPhoneService.php @@ -106,7 +106,7 @@ public function getCarrierPhoneTemplate($cartId, $carrierReference) ); return $this->context->smarty->fetch( - $this->module->getLocalPath().'/views/templates/hook/front/carrier-phone-number.tpl' + 'module:dpdbaltics/views/templates/hook/front/carrier-phone-number.tpl' ); }