I've been trying to create my own addon using one of the pre existing addons as a model. I've picked apart files like init.php, func.php, and the files in the schemas folder. I also have a my_addon.tpl in place in the skins/basic/customer/addons/my_addon/blocks/my_addon.tpl.
This is what I have in my schemas file: blocks.post.php
if ( !defined('AREA') ) { die('Access denied'); } $schema['my_addon'] = array ( 'content' => array( 'my_addon_opts' => array( 'type' => 'function', 'function' => array('fn_get_my_addon_options') ), ), 'templates' => array( 'addons/my_addon/blocks/my_addon.tpl' => array(), ), 'wrappers' => 'blocks/wrappers', );
The addon installs fine, and then when I create a new block to put in a location via the blocks manager my block shows up as an option. I create it and specify the template. It's listed as _my_addon.tpl.
However, my problem is that nothing shows up in my store. It doesn't appear that the my_addon.tpl is being shown or working properly.
I'm really lost at the moment and if anyone could shed some light on this I'd really appreciate it. Maybe someone has a bare bones addon with only the files and content needed to install and render the block in the store, and that is connected to a php controller file.
Thank you!