“Undefined” in try again button on Zipcode error
-
In the ‘try again’ button when filling an unknown zipcode, the button shows value ‘undefined’ instead of ‘try again’.
With latest WP, WC, PostNL versions. Also with Storefront theme.
Image: https://ibb.co/ZGYznF1
The showRetry function in postnl.js:830 does the following:
<br><div id="post-error-try-again" class="button btn">' + PostNL.data.textToTranslate.again + '</div>' +'
But, PostNL.data.textToTranslate does not have a property ‘again’. There also is no setting found in the plugin to even modify that text.
BEdeliveryStandardTitle: "Standaard bezorging" BEdeliveryTitle: "Delivery" addressNotFound: "Adresgegevens zijn nog niet ingevuld" city: "City" closed: "Gesloten" deliveryEveningTitle: "Avondbezorging" deliveryMorningTitle: "Ochtendbezorging" deliveryStandardTitle: "Standaard bezorging" deliveryTitle: "Bezorging" friday: "vrijdag" headerDeliveryOptions: " Bezorgopties selecteren" houseNumber: "Huisnummer" monday: "maandag" onlyRecipientTitle: "Alleen huisadres" openingHours: "Openingstijden" pickUpFrom: "Ophalen vanaf" pickupTitle: "Afhalen bij PostNL" postcode: "Postcode" quickDelivery: "Zo snel mogelijk bezorgen" retry: "Retry" saturday: "zaterdag" saturdayDeliveryTitle: "saturday_delivery_title" signatureTitle: "Handtekening voor ontvangst" sunday: "zondag" thursday: "donderdag" tuesday: "dinsdag" wednesday: "woensdag" wrongHouseNumberPostcode: "Huisnummer/postcode combinatie onbekend"
There also is NO property being added to this dataset in class-wcmp-frontend.php.
Please note we temporarily modified the plugin to make sure the text is shown, so you will not see this in our example.
The page I need help with: [log in to see the link]
- The topic ‘“Undefined” in try again button on Zipcode error’ is closed to new replies.