As you can see as soon as you enter the three dimensions (for example try to input 5 x 10 x 7) some lines of the table in the lower part of the page gets highlighted in yellow color.
The lines that get highlighted are those of the shipping methods where the entered dimensions fits.
I need this new script:
EXAMPLES of the exact informations that it must display:
- if the user inputs 32 x 26 x 1 it must display "note: with only 1 cm less (max 35,3 x 25 x 5 cm) it will be included Posta Prioritaria - Extra
Posta Raccomandata - Massimo, Posta Assicurata - Massimo and Posta Raccomandata 1 - Massimo too, with possible saving of costs."
- if the user inputs 65 X 65 X 50 it must display "note: with only 10 cm less (max Somma dei tre lati: 170 cm) it will be included eBoost-eBay (formato estero) too, with possible saving of costs."
- if the user inputs 55 x 30 x 45 it must display "note: with only 3 cm less (max Lato più lungo + circonferenza più corta: 200 cm. Lato più lungo: 105 cm) it will be oncluded Pacco Ordinario and Pacco Ordinario superficie (formato estero) too, with possible saving of costs."
CONDITION: it must display the information box ONLY if the total cm to remove from any side are not more than 20% of the sum of the sides
I think that the only files you need to modify for this work are [url removed, login to view] and script-get.js.
You will work on my server.