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.
This commit is contained in:
@@ -153,8 +153,8 @@ class ParentOrderControllerCore extends FrontController
|
|||||||
$this->addJqueryPlugin('fancybox');
|
$this->addJqueryPlugin('fancybox');
|
||||||
if ((int)(Configuration::get('PS_BLOCK_CART_AJAX')) || Configuration::get('PS_ORDER_PROCESS_TYPE') == 1)
|
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->addJqueryPlugin('typewatch');
|
||||||
|
$this->addJS(_THEME_JS_DIR_.'cart-summary.js');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user