Developer forum

Forum » Ecommerce - Standard features » The payment method is not set - Translation

The payment method is not set - Translation

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I am trying to localize a validation error message I get when trying to submit a cart without selecting a payment method.

The message is "The payment method is not set".

I am using Rapido with 9.5.5.

I have looked in the cart settings, translations, Group validation but I could not find it.

Can anybody point me to it?

Thank you,
Adrian


Replies

 
Nicolai Pedersen
Reply

That message seems to be hardcoded in the checkout flow code - as it should not happen if you have a default payment method set, which you should.

The only way to translate it is to add a conditional in the cart template in the validation errors loop and check if GetValue("Ecom:Cart.ValidationError.FieldSystemName") = "EcomCartPaymethodId"

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thank you Nicolai,

Are there any other errors that I should capture here?

The confusion comes from how the others are managed. the Group validation errors are set on the module.

It would be more explicit to have those set on the module as well.

Not that it is a priority, but it makes more sense to have a way (other than ninja tricks) to do it.

Thank you,

Adrian

 
Nicolai Pedersen
Reply

Hi Adrian

It is not an error you would see if the site is configured 'correctly'.

There is also a potential ""The price of the order does not validate with the sum of the orderlines."" error that will be shown if something is wrong with the order. I.e. if you add prices directly in the database and prices do not match.

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

There was a particular reason for not selecting a default method.

B2B users have a different default method than B2C. Moreover, the payment methods are dependant on the Shipping methods.
As you can see, there is no way I can "corectly" configure the solution.

Maybe if this type of connection between payments and users and payment and shipping would have been configurable from within the solution, the configuraion would have been standard :)

Anyway, I can live with these 2 custom error messages.

Thank you,

Adrian

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Bump!
I have the same problem. Two sites (B2B and B2C) both sites use the same countries, but they have different default payment methods for B2B and B2C. Given that they share country setup, there is no way we can set this up "correctly". The setup should have been separated.

 
Nicolai Pedersen
Reply

Then build the default selection into the templates so the first is chosen or something else.

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Of course, it is not hard to fix it by code. Everything can be coded!
Just would be nice to be able to configure it :P

(Maybe a feature request for the Rapido templates..?)

 

You must be logged in to post in the forum