- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Child theme error in magento 2 ?
HI guys,
After applying the child theme the magento frontend is not loading properly. Getting some error. I mentioned in below.When am applying parent theme no error i could see in console log. Can any one guide me?
[Error] TypeError: $(quickViewCf.product_container).cartQuickView is not a function. (In '$(quickViewCf.product_container).cartQuickView(quickViewCf)', '$(quickViewCf.product_container).cartQuickView' is undefined)
(anonymous function) (aero:2251)
execCb (require.js:1650)
check (require.js:866)
(anonymous function) (require.js:1113)
(anonymous function) (require.js:132)
(anonymous function) (require.js:1156)
each (require.js:57)
emit (require.js:1155)
check (require.js:917)
(anonymous function) (require.js:1113)
(anonymous function) (require.js:132)
(anonymous function) (require.js:1156)
each (require.js:57)
emit (require.js:1155)
check (require.js:917)
enable (require.js:1143)
init (require.js:774)
callGetModule (require.js:1170)
completeLoad (require.js:1544)
onScriptLoad (require.js:1671)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Child theme error in magento 2 ?
Fix for Magento 2 Themes Child Theme Error
The error occurs due to missing or improperly loaded JavaScript (cartQuickView). Steps to fix:
- Check theme inheritance in theme.xml.
- Ensure required JS files from the parent theme are included in the child theme.
- Run:
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
- Debug with browser tools and copy missing parent files if needed.
This should resolve the issue.