AbanteCart Community

AbanteCart Development => Customization help => Topic started by: dharding on June 12, 2018, 07:32:48 AM

Title: Best practice for hiding/removing unneeded product fields?
Post by: dharding on June 12, 2018, 07:32:48 AM
In an effort to streamline data entry and product creation, I would like to either hide or move to the bottom of the page, those fields that I do not plan to move.

Are there any recommended best practices in this regard? I assume the only way to do this is to edit the code in one of the .tpl files. Is that correct?

Thank you.
Title: Re: Best practice for hiding/removing unneeded product fields?
Post by: Basara on June 12, 2018, 08:05:48 AM
Be careful to not hide required or important fields like Store
Title: Re: Best practice for hiding/removing unneeded product fields?
Post by: dharding on June 12, 2018, 05:53:51 PM
Could you please tell me which .tpl file is the one to edit for the "general" data entry section for products? I can't make heads or tails out of all the physical files and when I search for control names shown in source, I come up empty.

Thank you.
Title: Re: Best practice for hiding/removing unneeded product fields?
Post by: eCommerce Core on June 13, 2018, 07:24:11 AM
Here is the TPL
https://github.com/abantecart/abantecart-src/blob/master/public_html/admin/view/default/template/pages/catalog/product_form.tpl

I would suggest creating a quick extension and hooking to product controller and hiding data in there.
You can hook from extension core file.

https://github.com/abantecart/abantecart-src/blob/master/public_html/admin/controller/pages/catalog/product.php

Title: Re: Best practice for hiding/removing unneeded product fields?
Post by: dharding on June 13, 2018, 07:39:48 AM
EDIT: I figured it out, thanks.