@@ -383,9 +383,12 @@ public function hookdisplayHome()
383383 if ($ this ->isModuleEnabled ('ps_featuredproducts ' )) {
384384 $ category = new Category ($ this ->context ->shop ->getCategory (), $ this ->context ->language ->id );
385385 $ home_featured_products = $ this ->wrapProducts (
386- $ category ->getProducts ((int )Context::getContext ()->language ->id ,
387- 1 ,
388- (Configuration::get ('HOME_FEATURED_NBR ' ) ? (int )Configuration::get ('HOME_FEATURED_NBR ' ) : 8 ), 'position ' ),
386+ $ category ->getProducts (
387+ (int )Context::getContext ()->language ->id ,
388+ 1 ,
389+ (Configuration::get ('HOME_FEATURED_NBR ' ) ? (int )Configuration::get ('HOME_FEATURED_NBR ' ) : 8 ),
390+ 'position '
391+ ),
389392 array (),
390393 true
391394 );
@@ -588,9 +591,8 @@ public function addProductFromCheckout($products)
588591 public function hookdisplayFooterProduct ($ params )
589592 {
590593 $ controller_name = Tools::getValue ('controller ' );
591- if ($ controller_name == 'product ' )
594+ if ($ controller_name == 'product ' )
592595 {
593-
594596 // Add product view
595597 $ ga_product = $ this ->wrapProduct ((array )$ params ['product ' ], null , 0 , true );
596598 $ js = 'MBG.addProductDetailView( ' .Tools::jsonEncode ($ ga_product ).'); ' ;
@@ -704,7 +706,8 @@ public function hookactionProductCancel($params)
704706 array (
705707 'id ' => empty ($ order_detail ->product_attribute_id )?$ order_detail ->product_id :$ order_detail ->product_id .'- ' .$ order_detail ->product_attribute_id ,
706708 'quantity ' => $ qty )
707- ).'); ' ;
709+ )
710+ .'); ' ;
708711 }
709712 $ this ->context ->cookie ->ga_admin_refund = $ ga_scripts .'MBG.refundByProduct( ' .Tools::jsonEncode (array ('id ' => $ params ['order ' ]->id )).'); ' ;
710713 }
0 commit comments