diff --git a/Application/views/tpl/page/account/d3gtmnoticelist.tpl b/Application/views/tpl/page/account/d3gtmnoticelist.tpl new file mode 100644 index 0000000..3b25c57 --- /dev/null +++ b/Application/views/tpl/page/account/d3gtmnoticelist.tpl @@ -0,0 +1,18 @@ +[{capture append="oxidBlock_content"}] + [{assign var="template_title" value="MY_WISH_LIST"|oxmultilangassign}] +
[{oxmultilang ident="WISH_LIST_EMPTY"}]
+ [{/if}] + + [{include file="addtocart.tpl" htmlIdAmountOfArticles='#amountToBasket'}] + + [{insert name="oxid_tracker" title=$template_title}] + [{/capture}] +[{capture append="oxidBlock_sidebar"}] + [{include file="page/account/inc/account_menu.tpl" active_link="noticelist"}] + [{/capture}] +[{include file="layout/page.tpl" sidebar="Left"}] \ No newline at end of file diff --git a/Application/views/tpl/page/account/d3gtmrecommendationlist.tpl b/Application/views/tpl/page/account/d3gtmrecommendationlist.tpl new file mode 100644 index 0000000..e3cf2a7 --- /dev/null +++ b/Application/views/tpl/page/account/d3gtmrecommendationlist.tpl @@ -0,0 +1,32 @@ +[{capture append="oxidBlock_content"}] + [{assign var="template_title" value="LISTMANIA"|oxmultilangassign}] + [{assign var="_actvrecommlist" value=$oView->getActiveRecommList()}] + ++ [{oxmultilang ident="GIFT_REGISTRY_EMPTY"}] +
+ [{/if}] + + [{include file="addtocart.tpl" htmlIdAmountOfArticles='#amountToBasket'}] + + [{insert name="oxid_tracker" title=$template_title}] +[{/capture}] +[{capture append="oxidBlock_sidebar"}] + [{include file="page/account/inc/account_menu.tpl" active_link="wishlist"}] +[{/capture}] +[{include file="layout/page.tpl" sidebar="Left"}] \ No newline at end of file diff --git a/IntelliSenseHelper.php b/IntelliSenseHelper.php index a7192ca..b34e102 100644 --- a/IntelliSenseHelper.php +++ b/IntelliSenseHelper.php @@ -24,6 +24,9 @@ namespace D3\GoogleAnalytics4\Modules\Application\Model{ namespace D3\GoogleAnalytics4\Modules\Application\Controller{ + use OxidEsales\Eshop\Application\Controller\AccountNoticeListController; + use OxidEsales\Eshop\Application\Controller\AccountRecommlistController; + use OxidEsales\Eshop\Application\Controller\AccountWishlistController; use OxidEsales\Eshop\Application\Controller\ArticleListController; class BasketController_parent extends \OxidEsales\Eshop\Application\Controller\BasketController {} @@ -32,6 +35,12 @@ namespace D3\GoogleAnalytics4\Modules\Application\Controller{ class ArticleListController_AddToCartHelpMethods_parent extends ArticleListController {} class ArticleDetailsController_parent extends \OxidEsales\Eshop\Application\Controller\ArticleDetailsController {} + + class d3GtmAccountNoticeListController_parent extends AccountNoticeListController {} + + class d3GtmAccountRecommlistController_parent extends AccountRecommlistController {} + + class d3GtmAccountWishlistController_parent extends AccountWishlistController {} } namespace D3\GoogleAnalytics4\Modules\Application\Component{ diff --git a/Modules/Application/Controller/d3GtmAccountNoticeListController.php b/Modules/Application/Controller/d3GtmAccountNoticeListController.php new file mode 100644 index 0000000..8c62241 --- /dev/null +++ b/Modules/Application/Controller/d3GtmAccountNoticeListController.php @@ -0,0 +1,17 @@ +addTplParam('d3CmpBasket', $this->getComponent('oxcmp_basket')); + + return $return; + } +} \ No newline at end of file diff --git a/Modules/Application/Controller/d3GtmAccountRecommlistController.php b/Modules/Application/Controller/d3GtmAccountRecommlistController.php new file mode 100644 index 0000000..6e9e825 --- /dev/null +++ b/Modules/Application/Controller/d3GtmAccountRecommlistController.php @@ -0,0 +1,17 @@ +addTplParam('d3CmpBasket', $this->getComponent('oxcmp_basket')); + + return $return; + } +} \ No newline at end of file diff --git a/Modules/Application/Controller/d3GtmAccountWishlistController.php b/Modules/Application/Controller/d3GtmAccountWishlistController.php new file mode 100644 index 0000000..731d6d4 --- /dev/null +++ b/Modules/Application/Controller/d3GtmAccountWishlistController.php @@ -0,0 +1,17 @@ +addTplParam('d3CmpBasket', $this->getComponent('oxcmp_basket')); + + return $return; + } +} \ No newline at end of file diff --git a/metadata.php b/metadata.php index f42d279..8acca2c 100755 --- a/metadata.php +++ b/metadata.php @@ -4,12 +4,18 @@ use D3\GoogleAnalytics4\Modules\Application\Component\d3GtmBasketComponentExtens use D3\GoogleAnalytics4\Modules\Application\Controller\ArticleDetailsController; use D3\GoogleAnalytics4\Modules\Application\Controller\ArticleListController_AddToCartHelpMethods; use D3\GoogleAnalytics4\Modules\Application\Controller\BasketController; +use D3\GoogleAnalytics4\Modules\Application\Controller\d3GtmAccountNoticeListController; +use D3\GoogleAnalytics4\Modules\Application\Controller\d3GtmAccountRecommlistController; +use D3\GoogleAnalytics4\Modules\Application\Controller\d3GtmAccountWishlistController; use D3\GoogleAnalytics4\Modules\Application\Controller\ThankYouController; use D3\GoogleAnalytics4\Modules\Application\Model\Basket as Basket; use D3\GoogleAnalytics4\Modules\Application\Model\Category as Category; use D3\GoogleAnalytics4\Modules\Application\Model\Manufacturer as Manufacturer; use D3\GoogleAnalytics4\Modules\Core\ViewConfig; use OxidEsales\Eshop\Application\Component\BasketComponent as OEBasketComponent; +use OxidEsales\Eshop\Application\Controller\AccountNoticeListController as OEAccountNoticeListController; +use OxidEsales\Eshop\Application\Controller\AccountRecommlistController as OEAccountRecommlistController; +use OxidEsales\Eshop\Application\Controller\AccountWishlistController as OEAccountWishlistController; use OxidEsales\Eshop\Application\Controller\ArticleDetailsController as OEArticleDetailsController; use OxidEsales\Eshop\Application\Controller\ArticleListController as OEArticleListController; use OxidEsales\Eshop\Application\Controller\BasketController as OEBasketController; @@ -39,18 +45,28 @@ $aModule = [ 'email' => 'support@shopmodule.com', 'url' => 'https://www.oxidmodule.com/', 'extend' => [ - OEViewConfig::class => ViewConfig::class, - OECategory::class => Category::class, - OEBasket::class => Basket::class, - OEBasketController::class => BasketController::class, - OEManufacturer::class => Manufacturer::class, - OEThankYouController::class => ThankYouController::class, - OEArticleListController::class => ArticleListController_AddToCartHelpMethods::class, - OEBasketComponent::class => d3GtmBasketComponentExtension::class, - OEArticleDetailsController::class => ArticleDetailsController::class + OEViewConfig::class => ViewConfig::class, + OECategory::class => Category::class, + OEBasket::class => Basket::class, + OEBasketController::class => BasketController::class, + OEManufacturer::class => Manufacturer::class, + OEThankYouController::class => ThankYouController::class, + OEArticleListController::class => ArticleListController_AddToCartHelpMethods::class, + OEBasketComponent::class => d3GtmBasketComponentExtension::class, + OEArticleDetailsController::class => ArticleDetailsController::class, + OEAccountNoticeListController::class => d3GtmAccountNoticeListController::class, + OEAccountRecommlistController::class => d3GtmAccountRecommlistController::class, + OEAccountWishlistController::class => d3GtmAccountWishlistController::class ], 'templates' => [ - 'addtocart.tpl' => 'd3/googleanalytics4/Application/views/ga4/add_to_cart.tpl' + // own callable files + 'addtocart.tpl' => 'd3/googleanalytics4/Application/views/ga4/add_to_cart.tpl', + + // complete overwritten file of OXID-Originals + // the path of the template-name is the original path to the file in OXID-context from tpl/-> + 'page/account/d3gtmnoticelist.tpl' => 'd3/googleanalytics4/Application/views/tpl/page/account/d3gtmnoticelist.tpl', + 'page/account/d3gtmrecommendationlist.tpl' => 'd3/googleanalytics4/Application/views/tpl/page/account/d3gtmrecommendationlist.tpl', + 'page/account/d3gtmwishlist.tpl' => 'd3/googleanalytics4/Application/views/tpl/page/account/d3gtmwishlist.tpl', ], 'blocks' => [ // tag manager js