Skip to content

Commit

Permalink
Fixed error when not on carrier selection page
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Dohmen committed Jul 30, 2020
1 parent ec9d5a6 commit 392bfbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wuunderconnector/views/js/hook/checkoutjavascript1.6.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ $(window).on("load", function() {
// Get the modal
var selectParcelshopLink = '<div id="parcelshopsSelectedContainer16"><a href="#/" id="selectParcelshop">' + innerHtml + '</a></div>';
var parcelshopShippingMethodElemRadio = jQuery('[value="' + shippingCarrierId + ',"].delivery_option_radio');
var parcelshopDescriptionElem = jQuery('[value="' + shippingCarrierId + ',"].delivery_option_radio').parents()[3].children[2];
if (parcelshopShippingMethodElemRadio.length > 0){
var parcelshopDescriptionElem = jQuery('[value="' + shippingCarrierId + ',"].delivery_option_radio').parents()[3].children[2];
}
var shippingMethodElems = jQuery('input.delivery_option_radio');
var shippingAddress;
var getAddressUrl = "index.php?fc=module&module=wuunderconnector&controller=parcelshop&getAddress=1";
Expand Down

0 comments on commit 392bfbf

Please sign in to comment.