Looks like the calculator cannot find the payment method when trying to calculate the VAT rate. Maybe you have deleted som payment methods as well? Or maybe theres not set a default payment method any more.
I have checked / compared the settings already, but will again to be sure.
Looks like the calculator cannot find the payment method when trying to calculate the VAT rate. Maybe you have deleted som payment methods as well? Or maybe theres not set a default payment method any more.
The site "should" be a copy of live, with various settings changed so that it points at test / sandbox services rather than live ones. Nothing else should have changed, hence my confusion!
Your countries should have a default payment method.
I think that the calculator is getting a payment method id, that have been deleted somehow. Check the orders payment method id here:
order.PaymentInformation.PaymentMethodId
This issue went quiet for a while - but has come back!
I have compared all the settings that I can find n Umbraco and the 2 environments are setup the same. The Staging site does not have a licence but I have removed all orders and reset the next order number in the DB.
Is there any way to enable more detailed debugging information, or can you supply a set of debug DLLs?
Can you suggest any other tests / config items to check, either via Umbraco or in the DB itself?
Umm, possibly?! What does the "methodId" value refer to, in the config file?
Edit:
I assume the methodId is the database ID of the payment method in the TeaCommerce_PaymentMethod table?
If so, then it's not the problem, as my local site (which works) has an ID in the config file that does not exist in the TeaCommerce_PaymentMethod table.
Error when adding to the Basket
I have copied our Live site to a Staging server and used the TeaCommerce UI to delete all orders and carts. I also reset the nextorder number to 0.
I now get the following error when trying to add anything to the basket:
Any ideas on what could be causing the error?
Hi Gordon,
Looks like the calculator cannot find the payment method when trying to calculate the VAT rate. Maybe you have deleted som payment methods as well? Or maybe theres not set a default payment method any more.
It needs the payment method to get the vat group.
/Rune
I have checked / compared the settings already, but will again to be sure.
The site "should" be a copy of live, with various settings changed so that it points at test / sandbox services rather than live ones. Nothing else should have changed, hence my confusion!
Where is the default payment method setup?
Your countries should have a default payment method.
I think that the calculator is getting a payment method id, that have been deleted somehow. Check the orders payment method id here: order.PaymentInformation.PaymentMethodId
/Rune
This issue went quiet for a while - but has come back!
I have compared all the settings that I can find n Umbraco and the 2 environments are setup the same. The Staging site does not have a licence but I have removed all orders and reset the next order number in the DB.
Is there any way to enable more detailed debugging information, or can you supply a set of debug DLLs?
Can you suggest any other tests / config items to check, either via Umbraco or in the DB itself?
Hi Gordon,
The ZeroCostPayment package may be the cause of the problem.
Does ZeroCostPayment.config reference a payment method that no longer exists?
Umm, possibly?! What does the "methodId" value refer to, in the config file?
Edit: I assume the methodId is the database ID of the payment method in the TeaCommerce_PaymentMethod table?
If so, then it's not the problem, as my local site (which works) has an ID in the config file that does not exist in the TeaCommerce_PaymentMethod table.
The methodId is indeed the ID of the payment method in the database.
ZeroCostPayment only triggers when the order total is 0. Are you adding a product without a price on the staging server?
No - the product has a price.
For now (and to match the live environment) I have disabled it in the TeaCommerce_PaymentMethod table. Items will now add to the basket.
I will have to revisit the issue if / when the ZeroCost plugin required in the future.
is working on a reply...