Jump to content
Bob van der Valk

[solved] Customer Reassurance 4.1.0

Recommended Posts

Posted (edited)

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
Posted (edited)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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