{"id":18028718,"date":"2024-09-21T16:43:35","date_gmt":"2024-09-21T16:43:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/errors-on-checkout\/"},"modified":"2024-09-21T16:43:35","modified_gmt":"2024-09-21T16:43:35","slug":"errors-on-checkout","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/errors-on-checkout\/","title":{"rendered":"Errors on checkout"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Im getting the following errors on a checkout page:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Uncaught SyntaxError: Identifier 'SendcloudShippingData' has already been declared<br \/>Uncaught SyntaxError: Identifier 'SendcloudShippingData' has already been declared<br \/>Uncaught SyntaxError: Identifier 'SendcloudLocaleMessages' has already been declared<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The JavaScript blocks where the <code>const<\/code> are defined are included multiple (3x) times. I see multiple actions including <code>add_service_point_to_checkout<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Can either that be fixed, or add an undefined check before defining the <code>const<\/code>.<\/p>\n","protected":false},"template":"","class_list":["post-18028718","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18028718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18028718\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18028718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}