Jump to content

limit paymeny methode to pay-in-advance on first order


janvl

Recommended Posts

  • 3 weeks later...

I suggest overriding all your payment module payment.tpl files inside your theme (except for the Bank Wire module) and add the following to the top of the files:

{if Order::getCustomerNbOrders($cookie->id_customer) > 0}

and the following to the bottom:

{/if}

This should only execute the code if the customer has previously ordered.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...