Jump to content
Bob van der Valk

[solved] Customer Reassurance 4.1.0

Recommended Posts

So why is the field length after the 'update' 4.1.0 reduced to 100 characters?

I am at the point of launching a B2B system and because of this 'update' my shipping info in the shopping basket is mostly gone.  It was a very good place to put it.  No, it was the very best place to put it but not anymore.  The possibilities of this module are extended I see but the function itself , giving info to the customer,  is very much reduced.

Thank you for that.

I am more scared of Prestashop upgrades than of virusses and hackers.

Edited by Bob van der Valk (see edit history)

Share this post


Link to post
Share on other sites

I found the 100 character restriction in /modules/blockreassurance/views/js/back.js and changed it to 500.  My text is visible again.

// Tab Content : Edit : MaxLength
    $(document).on('keyup keydown', '.show-rea-block.active .content_by_lang input[type="text"], .show-rea-block.active .content_by_lang textarea', function () {
        var maxLength = 500;
        var val = $(this).val();
        var valLength = val.length;
        if (val.length > maxLength) {
            $(this).val(val.substring(0, maxLength - 1));
            valLength = $(this).val().length;
        }
        if ($(this).is('input:text')) {
            $('.limit_text:visible').text(valLength);
        } else {
            $('.limit_description:visible').text(valLength);
        }
    });

Edited by Bob van der Valk (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More