Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

New Field On Admin Category Rate Topic   - - - - -

 
  • nicolasG
  • Advanced Member
  • Members
  • Join Date: 30-Oct 19
  • 56 posts

Posted 23 December 2021 - 11:27 AM #1

Hello,

 

Any one know the correct file path to add a new field in admin -- > category --> categories.update --> General tab --> Information --> under name?

 

I need to put a new field on top in Information dropdown or before the Information dropdown.

 

I have added:

/design/backend/templates/addons/my_addon/hooks/categories/detailed_content.pre.tpl

 

but unfortunately this add the field not in General tab but in Add-ons tab.

 

Thanks,

Nicolas



 
  • soft-solid
  • Junior Member
  • Authorized Reseller
  • Join Date: 19-Apr 10
  • 1518 posts

Posted 23 December 2021 - 12:48 PM #2

Hello,

 

You can only add code to the places where hooks are present. Hook "detailed_content" is responsible for adding content into Add-ons tab. There is no hook available to add a field under category name field.

 

You can check which hooks are available by opening this file:

 

/design/backend/templates/views/categories/update.tpl

 

And searching for the word "hook".

 

Best regards,

Robert


Team of SoftSolid
cs-cart.pl, marketplace

We specialize in creating the highest quality addons, safe, useful and flexible


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22537 posts

Posted 23 December 2021 - 01:39 PM #3

Hello,

 

Any one know the correct file path to add a new field in admin -- > category --> categories.update --> General tab --> Information --> under name?

 

I need to put a new field on top in Information dropdown or before the Information dropdown.

 

I have added:

/design/backend/templates/addons/my_addon/hooks/categories/detailed_content.pre.tpl

 

but unfortunately this add the field not in General tab but in Add-ons tab.

 

Thanks,

Nicolas

 

The only way to do it is to override the whole template

 

/design/backend/templates/addons/my_addon/overrides/views/categories/update.tpl

 

But it is not recommended since new features on this page in future upgrades can be lost


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • nicolasG
  • Advanced Member
  • Members
  • Join Date: 30-Oct 19
  • 56 posts

Posted 23 December 2021 - 02:38 PM #4

Thank you both for your answers



 
  • soft-solid
  • Junior Member
  • Authorized Reseller
  • Join Date: 19-Apr 10
  • 1518 posts

Posted 23 December 2021 - 02:40 PM #5

Hello

 

You are welcome :)

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl, marketplace

We specialize in creating the highest quality addons, safe, useful and flexible