Snippet change not visible on cart page until back button
-
Code inserted to change the wording on the shop page of woo commerce shopping cart. When go to Cart page initially, the default shopping cart text is shown. Proceed to checkout then back button to Cart page. Now the desired text “Free shipping” is shown. How make show when get to the Cart page firts time. Code snippet shown below:
// change shipping and handling text to “Free Shipping”
add_filter(‘gettext’, ‘translate_reply’);
add_filter(‘ngettext’, ‘translate_reply’);function translate_reply($translated) {
$translated = str_ireplace(‘Shipping and handling’, ‘Free Shipping’, $translated);
$translated = str_ireplace(‘Shipping Options Will Be Updated During Checkout.’, ‘ ‘, $translated);
return $translated;
}The page I need help with: [log in to see the link]
The topic ‘Snippet change not visible on cart page until back button’ is closed to new replies.