Sha256: 373fe709aaf02cff2acb8313922205fef480c8f955336d8cbba48a01701c6af2
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
# frozen_string_literal: true module RemoveRequiredPhoneFromAddress # PayPal doesn't use the phone number, so in cases where the user checks out via # PayPal, this field will be unpopulated. If you want to require phone numbers, # you'll need to turn off cart & product page displays on the payment method edit # page. def require_phone? super && false end ::Spree::Address.prepend self end
Version data entries
3 entries across 3 versions & 1 rubygems