Make jquery-blockui dependencies for wc-add-to-cart and wc-add-to-cart-variation since it uses the block function but has not dependency on the woocommerce script.
This commit is contained in:
parent
70e9b747e8
commit
90cc41c895
|
@ -256,12 +256,12 @@ class WC_Frontend_Scripts {
|
|||
),
|
||||
'wc-add-to-cart' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/frontend/add-to-cart' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery' ),
|
||||
'deps' => array( 'jquery', 'jquery-blockui' ),
|
||||
'version' => WC_VERSION,
|
||||
),
|
||||
'wc-add-to-cart-variation' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/frontend/add-to-cart-variation' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery', 'wp-util' ),
|
||||
'deps' => array( 'jquery', 'wp-util', 'jquery-blockui' ),
|
||||
'version' => WC_VERSION,
|
||||
),
|
||||
'wc-geolocation' => array(
|
||||
|
|
Loading…
Reference in New Issue