Home Forums WoodMart support forum Custom code expandable shopping cart

Custom code expandable shopping cart

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #268437

    webreturn
    Participant

    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!

    #268522

    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

    #268603

    webreturn
    Participant

    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.

    #268744

    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

Viewing 4 posts - 1 through 4 (of 4 total)