Comments 2Maarten started the conversationSeptember 1, 2020 at 12:13pmI 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!! 2Maarten repliedSeptember 1, 2020 at 1:50pmAh, 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! 767Janilyn repliedSeptember 2, 2020 at 10:05am 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 Sign in to reply ...
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() {
But nothing seems to change. Somehow this filter doesn't seem to be applied. Any idea how to solve this?return '<div class="woofc-shipping">Shipping costs here</div>';
}
```
Thank you!!
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!
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