Quote:
Originally Posted by KirbyDE
The Code should be
PHP Code:
$only['test_product'] = 'Test-Product';
Then it would show up as Test-Product Templates in Stlye Manager.
|
Thanks!
In review, just to make sure I have the process down:
1) Enable debug mode.
2) Enable plugin system.
3) Add your product using the manager.
4) Create custom setting groups.
5) Create custom settings.
6) Create custom phrasegroups.
- A) SELECT MAX(phrasetypeid) + 1 AS newid FROM phrasetype WHERE phrasetypeid < 1000
- B) INSERT INTO phrasetype (phrasetypeid, ...) VALUES ('$newid', ...)
- C) ALTER TABLE language ADD phrasegroup_whatever MEDIUMTEXT NOT NULL
- D) Rebuild languages
7) Create custom phrases.
8) Create custom templates beginning with a unique prefix in lowercase, such as poduct_name.
9) Tweak existing templates if needed.
10) Create the $only['product_name'] = 'Product Name'; plugin for your product using the template_groups hook.
11) Create any other hooks plugins your product needs.
12) Write new files.
13) Hack old files if needed.
14) Export your product to xml.
15) Package it with a small script to install the tables and explain manual tweaking of existing templates and files.
Done. Right?