PlugIn Hooks


The default button can be changed with the ct_catalog.css_template.default (path) hook

If you want to minify the buttons CSS this hook will do it for you,

by default the minify functionality is set to true.

Add custom template button
With the ct_catalog.css_template hook can be added new templates to the plugin

Example:

Lets add a new button style to the settings select list:

All done, now have button will have your custom stylsheet.

If for some reason the price need to be hidden or shown there is a hook for that too:

On this example lets hide a price if the value is bigger than 5