oc-shopaholic / oc-orders-shopaholic-plugin

🛒 Orders (cart) extension for Shopaholic plugin
https://octobercms.com/plugin/lovata-ordersshopaholic
GNU General Public License v3.0
27 stars 18 forks source link

UserAddress : why "type" is required #142

Open PubliAlex opened 3 years ago

PubliAlex commented 3 years ago

Hello,

I wonder why the "type" field seems required for the UserAddress model, and if I can alter the model to remove it from the $rules array without drawback.

I would like to do that because I don't want to tag an address as "billing" or "shipping" only. I think an address can be both at a time, and so, it should be better to handle that by defining 2 new columns :

It sounds better to me to handle things like that than the default "type" column.

Best regards,