From 324dff0595e5dc94206b9b402288afb3dffeea4c Mon Sep 17 00:00:00 2001 From: Cosmin Hutanu Date: Mon, 15 Jul 2013 00:56:56 +0300 Subject: [PATCH] ParentOrderController->setMedia() proper order for typewatch and cart-summary In the original class, typewatch is inserted after cart-summary, but it is used for the quantity input in cart-summary.js, so we need to have typewatch first. --- controllers/front/ParentOrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/ParentOrderController.php b/controllers/front/ParentOrderController.php index 65e287e5d..a60f194b1 100644 --- a/controllers/front/ParentOrderController.php +++ b/controllers/front/ParentOrderController.php @@ -153,8 +153,8 @@ class ParentOrderControllerCore extends FrontController $this->addJqueryPlugin('fancybox'); if ((int)(Configuration::get('PS_BLOCK_CART_AJAX')) || Configuration::get('PS_ORDER_PROCESS_TYPE') == 1) { - $this->addJS(_THEME_JS_DIR_.'cart-summary.js'); $this->addJqueryPlugin('typewatch'); + $this->addJS(_THEME_JS_DIR_.'cart-summary.js'); } }