Quote Originally Posted by duncanad View Post
doubletiger,

MD5 should be set to 'false' - unless of course you are using MD5!

Pottsy,

The file:

tpl_checkout_confirmation_default.php

is part of the core code and not part of the WorldPay module so you should be experiencing this problem with all of your payment methods - not just WorldPay.

I have had a look at your site and at the source code of your Checkout Confirmation page. You seem to be missing the last half dozen or so lines of the above file including the following:
Code:
<div class="buttonRow forward"><input type="image" src="includes/templates/template_default/buttons/english/button_confirm_order.gif" alt="Confirm Order" title=" Confirm Order " name="btn_submit" id="btn_submit" /></div>
</form>
<div class="buttonRow back"><strong>Final Step</strong><br />- continue to confirm your order. Thank you!</div>
I would suggest checking the last few lines of code in:

includes/templates/template_default/templates/tpl_checkout_confirmation_default.php

Of course, if you have customised this file in any way then you need to check the version of this file in your template overide folder i.e.

includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_confirmation_default.php

Hope this helps.

Post back if/when you get this resolved.

Regards,

Alan
Hi Alan

I found where the code was breaking. Just not sure why.

The code was breaking in the includes/modules/payment/worldpay.php module. The problem was the $languages_id variable was null.

The code involved is

$language_code_raw = "select code from " . TABLE_LANGUAGES . " where languages_id ='$languages_id'";
$language_code = $db->Execute($language_code_raw);

$languages_id is null but should be 1

I am not sure but I get the impression it should be the "default" language id. As the site only uses english I was able to set the appropriate language_code field by hard coding the value.

Any suggestion as to why the language code value wasn't getting set?

In the meantime I have worked around the problem.

Cheers Neil