0

When creating a customer programmatically I know how to set a simple text field eg

$customer = Mage::getModel("customer/customer");
$customer->setFirstname('John');

However my question is how do I set the values of a multiselect field

1 Answer 1

1

Just in case some one else pulls out their hair working this out you use 1 string with values comma seperated.

->setAllowedPaymentMethods('free,banktransfer')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.