From 3cae6f272109db59672fd46b5af87c17ffdff898 Mon Sep 17 00:00:00 2001 From: Matthias Niess Date: Fri, 19 Jan 2018 18:32:44 +0100 Subject: [PATCH] enable extension on CMS pages too --- view/frontend/layout/cms_page_view.xml | 15 +++++++++++++++ view/frontend/web/js/productheight.js | 5 +++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 view/frontend/layout/cms_page_view.xml diff --git a/view/frontend/layout/cms_page_view.xml b/view/frontend/layout/cms_page_view.xml new file mode 100644 index 0000000..0a87c14 --- /dev/null +++ b/view/frontend/layout/cms_page_view.xml @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/view/frontend/web/js/productheight.js b/view/frontend/web/js/productheight.js index 96cfe07..2bca05f 100644 --- a/view/frontend/web/js/productheight.js +++ b/view/frontend/web/js/productheight.js @@ -6,8 +6,9 @@ define([ return { productheight: function() { $('.product-items').each(function() { - $(this).children('').matchHeight(); + $(this).find('.product-item-name').matchHeight(); + $(this).find('.price-box').matchHeight(); }); } } -}); \ No newline at end of file +});