Home / Forums / WoodMart support forum / Cart widget not working when product is added to cart
Home › Forums › WoodMart support forum › Cart widget not working when product is added to cart
Cart widget not working when product is added to cart
- This topic has 12 replies, 3 voices, and was last updated 4 years, 1 month ago by
Artem Temos.
-
AuthorPosts
-
September 9, 2021 at 1:50 pm #317499
TradeSurveyParticipantHi,
The cart widget isn’t working when I add a product to the cart.
I have display widget selected in Theme Settings > Shop > Shopping Cart Widget
What else do i need to check?
Thanks
Attachments:
You must be logged in to view attached files.September 10, 2021 at 1:56 pm #317738
Luke NielsenMemberHello,
Please, provide your site admin access to the private area. I will check your issue and find a solution.
Kind Regards
September 10, 2021 at 2:41 pm #317757
TradeSurveyParticipantThank you, login below.
September 11, 2021 at 11:49 am #317883
Artem TemosKeymasterPlease, switch to the parent theme temporarily and disable all external plugins. Let us know if the problem remains.
September 24, 2021 at 10:32 am #320805
TradeSurveyParticipantHello,
I disabled all plugins and switched to the Woodmart parent theme and the shopping cart widget worked.
I then reverted the site and switched to the Woodmart theme but left all the plugins active and the shopping cart widget still worked.
Have i got an incorrect setting somewhere in my Woodmart child theme?
Many thanks
September 24, 2021 at 12:16 pm #320843
Luke NielsenMemberHello,
By default, the child theme is empty, so if you have added some custom features, try to find and fix it.
Kind Regards
September 24, 2021 at 1:37 pm #320883
TradeSurveyParticipantHi,
It was all working fine. But I’ve added quite a few customisations and broken it somewhere along the way.
I’ve checked these settings:
Theme Settings > Shop > SHOPPING CART WIDGET
and
Theme Settings > Single Product > ADD TO CART OPTIONSAll looks OK (see uploaded screenshots) please can you give me some help where to look next?
Many thanks
Attachments:
You must be logged in to view attached files.September 24, 2021 at 1:45 pm #320885
Artem TemosKeymasterAnyway, if you have this problem with the child theme active you need to check all the custom PHP code added to your
functions.phpfile or any other files in the child theme.September 24, 2021 at 2:44 pm #320901
TradeSurveyParticipantHi,
I’ve checked the functions.php but I can’t see which bit might interfere with the cart widget?
I’ve pasted it below.
Thank you
September 25, 2021 at 4:57 pm #321080
TradeSurveyParticipantI’ve checked the functions.php against a backup version from when the cart widget worked and they are identical.
There’s a header.php & footer.php in the child theme, but I haven’t directly edited any of these files. I just been using the Woodmart settings to customise the look and feel of the site.
Is there any other setting that affects the cart widget flyout?
Many thanks
September 27, 2021 at 6:05 am #321290
Artem TemosKeymasterYou can try to restore header.php and footer.php from the parent theme to see if your changes there make any difference.
September 27, 2021 at 11:06 am #321378
TradeSurveyParticipantI uploaded the parent theme header.php and footer.php. It was the footer.php that was causing the problem.
I’ve backed up the version with the problem footer.php and will now proceed using the parent footer.php.
Thanks so much 😁👍
September 27, 2021 at 11:11 am #321382
Artem TemosKeymasterGreat, we are glad that you sorted it out!
-
AuthorPosts
The topic ‘Cart widget not working when product is added to cart’ is closed to new replies.
- You must be logged in to create new topics. Login / Register