Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2524992
Unable to modify the plugin through add_filter from the theme
Closed

Comments

  •  2
    Maarten started the conversation

    I am trying to add shipping costs to the cart and added the following code in the functions.php of the active theme.

    ```
    add_filter( 'woofc_below_subtotal_content', 'pp_add_shipping_to_cart', 99, 1 );

    function pp_add_shipping_to_cart() {
       return '<div class="woofc-shipping">Shipping costs here</div>';
    }
    ```

    But nothing seems to change. Somehow this filter doesn't seem to be applied. Any idea how to solve this?

    Thank you!!

  •  2
    Maarten replied

    Ah, I discovered this has to do with how the Shipping Cart is being cached. The changes become visible when I change the content (add/remove an item) in the cart.

    This ticket can be closed!

  •  767
    Janilyn replied

    Thanks for your feedback, Maarten. I'm glad that it was solved.

    I'll close your ticket now. Feel free to submit a new one in case you encounter any issues at any time. 

    Have a nice day and best regards. 

    Janilyn T. - WPClever Support Agent