Customer info depending on payment metod

LiteCart Fan
من Sweden
عضو منذ ديسمبر 2013

Is it possible to change the needed customer info depending on payment metod?

If a customer choose bankgirot then he should need to fill in
Name
Address
Postnr
City

But if he choose Svea Ekonomi Faktura he should only need to fill in
Social security number

tim
Founder
من Sweden
عضو منذ مايو 2013
tim

On a short basis no. Because the chain process is that the payment component is loaded after the customer. LiteCart needs to collect info before running the modules as the information depends on if the modules should display or not.

LiteCart Fan
من Sweden
عضو منذ ديسمبر 2013

OK.
But if you change the order so the customer info is last?

tim
Founder
من Sweden
عضو منذ مايو 2013
tim

Then you can't limit the modules to countries or zones and will not be able to calculate shipping costs to a destination. I suppose there is mostly a good reason for everything ;)

tim
Founder
من Sweden
عضو منذ مايو 2013
tim

What you can do is remove the field for taxid / civic registration number and have the module injecting it into the order object. I'm not gonna recommend it or guide you there.

Or you can have the payment option output some jquery code that toggles visibility for the field.

LiteCart Fan
من Sweden
عضو منذ ديسمبر 2013

Ok, there is never an easy way ;)
I let this go for now :D

أنت
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.