Sunday, February 10, 2019

Resolve "Cannot call method 'get' of undefined[ ]" error on Billing & Payment section of One Page Checkout.

This error displays on the Billing and Payment step of the One Page Checkout when shoppers click on the Next button prior to selecting a credit card.

The expected behavior should be that the shopper would not encounter the error, but see a prototype pop-up, when pointer is hovered on the Next button, stating "Please select a credit card.

A fix has been addressed for this issue with an added code snippet in the checkout_billingPayment.txt under the Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. > Reference Checkout > templates folder. If user has their own custom checkout_billingPayment.txt template, users would need to add the code snippet and set the code to be hidden if preferred.

Please refer to the steps below:

a. Navigate to (Admin) Documents > Files > File Cabinet.
b. Look for the "checkout_billingPayment.txt" file under Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. > Custom Checkout > templates folder.
c. Click on Edit and under Media Item, click on Edit again. Be sure to make a copy of the content of  checkout_billingPayment" file.
d. Look for the line <!-- <hr> --> and add code below:


 f. Save. 

Users may need to clear their browser's cache for the One Page Checkout to be updated with the change made.

No comments:

Post a Comment