• Hi,

    in your plugin in the file ….. have a this code :

    * Add span to View Cart woocommerce
     */
    $('body').on('click', '.add_to_cart_button', function() {
        $(document).ajaxComplete(function() {
            $('.added_to_cart').each(function() {
                $('.added_to_cart').html('<span class="psfw-span">View Cart</span>');
            });
        });
    });

    but written like this creates problems with multilengual site.

    /*
         * Add span to View Cart woocommerce
         */
        $('body').on('click', '.add_to_cart_button', function() {
            $(document).ajaxComplete(function() {
                $('.added_to_cart').each(function() {
                    $('.added_to_cart').html('<span class="psfw-span">'+wc_add_to_cart_params.i18n_view_cart+'</span>');
                });
            });
        });

    Thank you and best regards

  • The topic ‘string ‘view cart’ translatable’ is closed to new replies.