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

[Question] orderproperties in order columns.yaml #29

Open Ma3ffin opened 6 years ago

Ma3ffin commented 6 years ago

Why are the orderproperties email, name, last_name and phone in the columns.yaml of order?

If I want to remove one of those orderproperties I will have to extend the plugin to really remove it from the list view.

Further you need the buddies plugin for the translation of the label of property[last_name] and property[name].

Thanks.

kharanenka commented 6 years ago

Hi! It is additional properties of orders. They are added dynamically. You can create or delete fields in "Additional order properties". You can find it by /backend/lovata/ordersshopaholic/orderproperties url in backend

Ma3ffin commented 6 years ago

Hi!

I knew that, but those four specific orderproperties (property[last_name] , property[name], property[email] , property[phone]), which are filled by the SeederDefaultOrderProperties class, are hard coded as columns in the order columns.yaml (\plugins\lovata\ordersshopaholic\models\order\columns.yaml).

I wanted to know why that's the case?

Thanks.

kharanenka commented 6 years ago

I understood you. I think that it will be useful to add setting in property - add property to columns list. Thank you for your idea.