Custom code expandable shopping cart
-
Hi,
We want to add some custom code in the expandable shopping cart (the cart sidebar that expands when clicking on the cart icon in the main menu). Could you tell me in what php file this is located?
Thank you!
Hello,
Please add PHP to the functions.php of the child theme (find in the Theme Folder)
JS is added to the Theme Settings > Custom JS
CSS is added to the Theme Settings > Custom CSS.
Best Regards
We understand that, but where is the php file located that generates the sidebar shopping cart? Can we use a hook to get custom data in there?
We have purchased your theme 15 times, so hope you can help us.
Hello,
This file: woodmart/inc/integrations/woocommerce/template-tags.php
You need to take this function: function woodmart_cart_side_widget()
Please note, that this function is just a “wrapping” we use the default Woocommerce shopping cart widget WC_Widget_Cart
.
Best Regards