Line 15 file uc_conditional_payment.js
var order = serializeOrder();

Get a javascript error of serializeOrder being undefined and as a result of this the total order amount on the checkout page is not displayed and the message "Javascript must be enabled to view the order total preview." is shown in stead.

To work around this at the moment the following has been done:
before change
Line 15:var order = serializeOrder();
Line 23:order: order,

After change
Line 15:var order = true;
Line 23:order: null,

Comments

longwave’s picture

Status: Needs review » Postponed (maintainer needs more info)

The serializeOrder() function is defined in uc_payment.js which should already be included on checkout pages, as it's needed to render the order total preview in the first place. Can you confirm this file is being included on your checkout page? Or perhaps the JavaScript files are included in the wrong order on your site for some reason?

I can't reproduce this here, but the changes you have made seem to imply that you can't use any order-related conditions such as delivery country, as the order object needs to be passed back via JavaScript to run the conditional actions tests.

longwave’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Still have not been able to reproduce this, so closing this issue.