• I use this script for converting English numbers to Persian numbers:

    
    jQuery(document).ready(function($) {
    $(window).on('load', function persianModule(){
          var els = document.querySelectorAll('.woocommerce-Price-amount, .amount ');
          els.forEach(function(item) {
            item.textContent = persianJs(item.textContent).englishNumber().toString();
          });
        });
    });
    $(".woocommerce-Price-amount, .amount ").replaceAll($(".woocommerce-Price-amount, .amount "));

    It works for Shop front page and I can see the prices in Persian format but it doesn’t work for Checkout page (after Ajax reload).

    Could you please guide me to modify my script and get it working in all pages of WooCommerce?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom JavaScript doesn’t work on Checkout page’ is closed to new replies.