
Originally Posted by
MyDigitalFixation
If I have css buttons turned on in admin settings, is there a file I can override on a per template basis to hardcode turning off css buttons?
one way could be to change the database-entry IMAGE_USE_CSS_BUTTONS
Code:
UPDATE configuration SET configuration_key = 'IMAGE_USE_CSS_BUTTONS_' WHERE configuration_key = 'IMAGE_USE_CSS_BUTTONS' LIMIT 1;
this files make use from the constant IMAGE_USE_CSS_BUTTONS
Code:
includes\functions\html_output.php (267:20)
includes\functions\html_output.php (293:20)
includes\templates\template_default\sideboxes\tpl_search.php (17:18)
includes\templates\template_default\sideboxes\tpl_search_header.php (16:18)
you have now to create or modify the file includes\templates\YOUR_TEMPLATE\common\main_template_vars.php
add a line with
Code:
define('IMAGE_USE_CSS_BUTTONS', 'no')
you can see it
- http://demo.zen-cart.at/index.php?ma..._switch_id=css == CSS buttons
http://demo.zen-cart.at/index.php?ma...witch_id=XAJAX == image buttons