eCommerce - Remove fields from Billing and Shipping Form
Permalink
How do I remove some fields from billing and shipping form with the eCommerce Addon?
I don't need Adress 2, Country and Province/State. I wish to remove it completely, no replacement with other fields.
Which files do I have to modify for that?
I don't need Adress 2, Country and Province/State. I wish to remove it completely, no replacement with other fields.
Which files do I have to modify for that?
Thanks for your answer. Yes, it is a desaster. I tried it the way using own fields. Its catastrophic, altough ecommerce-Plugin does allow to modify these attributes, changing something on them ends in runtime errors, because the fields are hard-coded in this plugin.
I will try also the other way round, to make a own field thats named the same, but I don't think it will be successful.
I will try also the other way round, to make a own field thats named the same, but I don't think it will be successful.
I guess the next thing I would try is to override the address attribute. Copy it to the appropriate path from /concrete/models to /models and comment out the unwanted parts.
Again, it could be a disaster and upset ecommerce code that depends on the contents of the address attribute.
There is a general howto on overrides and more in the documentation.
http://www.concrete5.org/documentation/how-tos/developers/change-th...
Again, it could be a disaster and upset ecommerce code that depends on the contents of the address attribute.
There is a general howto on overrides and more in the documentation.
http://www.concrete5.org/documentation/how-tos/developers/change-th...
Just come across an old howto:
http://www.concrete5.org/documentation/how-tos/developers/create-a-...
It looks like it specifically addresses your question.
http://www.concrete5.org/documentation/how-tos/developers/create-a-...
It looks like it specifically addresses your question.
This isn't something I have tried, but you could go to dashboard > ecommerce > settings > order attributes, remove the address attribute from billing and shipping.
Then create a new 'text area' attribute called say 'Customer Address' and make it 'required'. That would give your customers a free-text area to enter whatever is needed.
Alternatively, you could create a couple of text attributes ('text' this time and not text area) that you could call 'Street Address' and 'Town/City' to replace the deleted address attribute.
Bear in mind that these could have knock on effects on both shipping modules and billing. For example, I think it could create difficulties in my zone based shipping add-on. Also, if a billing module validates a credit card using the address attribute, it could have problems if the full address is not there.
As I noted at the top, this is an idea, not something I have ever tried, so it may be a disaster.