Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'wp_footer', 'wpmudev_removedoubleddahs' );
- function wpmudev_removedoubleddahs() {
- if (is_page(27) || is_page(27)) {
- ?>
- <script type="text/javascript">
- jQuery(document).ready(function() {
- var val = jQuery(".mp_cart_resume_item_amount-total").html();
- jQuery(".mp_cart_resume_item_amount-total").html(val.substring(1, val.length));
- var val = jQuery(".mp_cart_coupon .mp_cart_resume_item_amount").html();
- jQuery(".mp_cart_coupon .mp_cart_resume_item_amount").html(val.substring(1, val.length));
- });
- jQuery( document ).ajaxSuccess( function(){
- var val = jQuery(".mp_cart_resume_item_amount-total").html();
- jQuery(".mp_cart_resume_item_amount-total").html(val.substring(1, val.length));
- var val = jQuery(".mp_cart_coupon .mp_cart_resume_item_amount").html();
- jQuery(".mp_cart_coupon .mp_cart_resume_item_amount").html(val.substring(1, val.length));
- });
- </script>
- <?php
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement