I've been looking to put together an addon to add support for a different slider other than owl carousel for CS-Cart. I "thought" i had don't everything correctly, however have no idea how to add a new option to the current "banners" module. Basically CS-Cart out of the box has the banner templates of:
- Original
- Carousel
app/addons/addon_name/schemas/block_manager/blocks.post.tpl
<?php $schema['banners']['templates']['addons/addon_name/blocks/addon_name.tpl'] = array(); return $schema;app/addons/addon_name/addon.xml
<?xml version="1.0"?> <addon scheme="3.0"> <id>addon_name</id> <version>1.0</version> <name>Addon Name</name> <default_language>en</default_language> <status>active</status> <language_variables> <item lang="en" id="addon_name">Addon Name</item> </language_variables> <compatibility> <dependencies>banners</dependencies> </compatibility> </addon>app/addons/addon_name/func.php
<?php if (!defined('BOOTSTRAP')) { die('Access denied'); }js/addons/addon_name/js_name.js
- containing the js needed
design/themes/responsive/css/addons/addon_name/styles.css
- containing the css needed
design/themes/responsive/templates/addons/addon_name/blocks/addon_name.tpl
- containing the front end code needed
design/themes/responsive/templates/addons/addon_name/hooks/scripts.post.tpl
- containing the link to the aforementioned js
design/themes/responsive/templates/addons/addon_name/hooks/styles.post.tpl
- containing the link to the aforementioned css
--
What am I missing? (the list of templates for the banner block still only shows original and carousel not the new template I am trying to add). Any help is much appreciated and once complete the addon will be released free of charge here.
Have a wonderful New Year!
Rob