Jump to content

Remove transition effects on discount field field (cart and checkout)


DARKF3D3

Recommended Posts

By default discount field it's hidden, and to show it you have to click on a link.
I want to keep this, but I would like to remove the transition when open/close this field.
I can't figure out how they're added... It doesn't seem to be css transition.

Any help?

Link to comment
Share on other sites

4 minutes ago, DARKF3D3 said:

It's not working.

it should work, can you clear cache etc please.

but here is another solution as well, in the theme.js file look for the following code

toggleContent: function($content, $button, speed) {
    $content.slideToggle(speed);
},

replace it with the following

toggleContent: function($content, $button, speed) {
    if (!$content.hasClass('cart-summary-voucher')) {
        $content.slideToggle(speed);
    } else {
        $content.toggle();
    }
},

 

Link to comment
Share on other sites

  • 1 month later...
On 5/20/2023 at 7:09 PM, DARKF3D3 said:

I wan't able to find the javascript responsible of the animation on coupon field.

That is strange, the theme.js file of your classic theme shall have this script.  you sure you had searched by "slideToggle" in theme.js? also search in core.js as well?

Link to comment
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...