Jump to content

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

Addon Database Initialization Rate Topic   - - - - -

 
  • quicksnap
  • Newbie
  • Members
  • Join Date: 26-Jun 12
  • 8 posts

Posted 27 June 2012 - 06:23 PM #1

I am making an addon that will perform simple CRUD per-product, associating admin-created text for each product.

Where is best place to put database initialization code for an addon? Are there any CS Cart best practices in performing this function?

Also, which template hooks would be best for providing admins with simple interface per-product? So that they may navigate to any item and see my addon's fields per-product?

Thanks for any information.

 
  • quicksnap
  • Newbie
  • Members
  • Join Date: 26-Jun 12
  • 8 posts

Posted 27 June 2012 - 06:26 PM #2

It looks like this template hook may be good for products.update->addons section:

{hook name="categories:detailed_content"}

 
  • quicksnap
  • Newbie
  • Members
  • Join Date: 26-Jun 12
  • 8 posts

Posted 27 June 2012 - 06:29 PM #3

Or, even better, copying the functionality in the "buy_together" addon, one can add a new product.update tab using tabs_extra.post.tpl