Normally, I take credit card payments through the Authorize.net payment module.
For certain products with recurring charges, however, I want to enable the Credit Card module and disable Authorize.net. Ideally, this would work with all products in a given category. But, if necessary, I could use a range of IDs or include some text in the product titles or elsewhere (e.g., "monthly").
In the wiki at Change Payment Option Over Certain Amount, there is this helpful bit of code:
"Find this line:
and change to this:"
This shows how to enable a module based on the order total, and sounds like it should be adaptable for my purpose.
My question is this: what is the array (or whatever) that contains the names of the products in the cart? How would I reference it to create an "if" statement for each of the two payment modules?
For my ideal solution, is there an array that contains the category names of the products in the cart? How would I reference it?
Thanks for any help you can give.