Hi,
i want a despatch time to show in product lay out but would like to be able to switch it on and off, heres what ive done but it isnt working
in database i entered
INSERT INTO `product_type_layout` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `product_type_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('','Show Despatch Time','SHOW_PRODUCT_INFO_DESPATCH','0','Display Despatch Time on Product Info 0= off 1= on',1,'','2010-04-26 17:33:15','2010-04-22 20:59:42',NULL,'zen_cfg_select_drop_down(array(array(\'id\'=>\'1\', \'text\'=>\'True\'), array(\'id\'=>\'0\', \'text\'=>\'False\')), ');
then in
/httpdocs/includes/templates/lite_red/templates/tpl_product_info_display.php
<?php echo (($flag_show_product_info_despatch == 1) ? '<li><span class="product-info-label">'. 'Despatch Time' . '</span>' . ' : 1 - 3 Working Days' . '</li>' : '') . "\n"; ?>
i can see the switch in admin but switching it on or off doesnt make a difference
i can get my message to show using the quantity switch but would prefer to do it with seperate on off
hope this makes sense
thanks
bryan
Bookmarks