Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Reset configuration button

$
0
0

Replies: 0

It seems the reset configuration button isn’t working fully.

When I edit the configuration and have add on prices, it does reset the layer choices to the default ones, but the “extra price” field doesn’t get reset. Only by selecting an option with an added price, will the field change.

Here are some screenshots:
https://imgur.com/a/EDJYBKa
First image – Default look when you open the configurator the first time.
Second image – I’ve added “last month” meal, with an added price of 10 DKK.
Third image – When pressing the “reset configuration” button, it resets the choices back to default, but the added price field is unchanged.

I’ve tried to add custom javascript to manually reset these fields, but the .click event for jquery when looking for the button.
I’ve tested with following:
$( “.reset-configuration” ).click(function() {
console.log(“Test click event”);
});

However, this doesn’t post anything in the console.

  • This topic was modified 18 minutes ago by jonasnimb.

Viewing all articles
Browse latest Browse all 59525

Trending Articles