From 464345139650b51cc00589b75de74eb840c13f8e Mon Sep 17 00:00:00 2001 From: Kevin Kong Date: Fri, 8 Jan 2021 15:14:13 -0800 Subject: [PATCH] remove jquery UI (#53) Removing jquery UI as it is not used on our functions --- view/frontend/templates/pixel/code.phtml | 23 ++++++++++++----------- view/frontend/web/js/affirmPixel.js | 9 ++++----- view/frontend/web/js/affirmWidget.js | 3 +-- view/frontend/web/js/aslowasPDP.js | 3 +-- view/frontend/web/js/aslowasPLP.js | 3 +-- view/frontend/web/js/model/global.js | 3 +-- 6 files changed, 20 insertions(+), 24 deletions(-) diff --git a/view/frontend/templates/pixel/code.phtml b/view/frontend/templates/pixel/code.phtml index 791bdfad..d32c7232 100755 --- a/view/frontend/templates/pixel/code.phtml +++ b/view/frontend/templates/pixel/code.phtml @@ -44,7 +44,7 @@ if (($action == 'catalogsearch_result_index' || $action == 'catalogsearch_advanc $queryString = $this->getQueryString(); if($queryString) { - + $pixelCode['method'] = 'trackProductsSearched'; $pixelCode['parameter'][0] = $queryString; } @@ -56,7 +56,7 @@ if (($action == 'catalog_category_view' || $action == 'catalogsearch_result_inde if($productListData) { $categoryId = isset($productListData['categoryId']) ? $productListData['categoryId'] : ''; $categoryName = isset($productListData['categoryName']) ? $productListData['categoryName'] : ''; - + $pixelCode['method'] = 'trackProductListViewed'; $pixelCode['parameter'][0] = array(); $pixelCode['parameter'][0]['listId'] = $categoryId; @@ -69,7 +69,7 @@ if (($action == 'catalog_category_view' || $action == 'catalogsearch_result_inde if ($action == 'catalog_product_view' && $block->isProductViewTrackPixelEnabled() ) { $productData = $this->getProductData(); - + if($productData) { $name = isset($productData['name']) ? $productData['name'] : ''; $productId = isset($productData['productId']) ? $productData['productId'] : ''; @@ -87,10 +87,11 @@ if ($action == 'catalog_product_view' && $block->isProductViewTrackPixelEnabled( if($block->isAddCartTrackPixelEnabled()){ ?>