Salvaconnome Posted September 23, 2013 Share Posted September 23, 2013 Hello to all, a customer asks me to enforce payment by credit card in the event that at least one of the products purchased and virtual (in his shop has both virtual goods that do not). How can you have this behavior? Thank you, Simone Link to comment Share on other sites More sharing options...
tomerg3 Posted September 23, 2013 Share Posted September 23, 2013 There are probably several ways to do this, I would go about it the following way. Modify each of the *Non Credit Card* modules, look for the hook payment function in the main php file for the module. You would need to add a new check there, that iterates through the products in the cart, checks if one is virtual, in which case, return false (rather than display the payment form). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now