Zen Follower
- Join Date:
- Nov 2020
- Posts:
- 318
- Plugin Contributions:
- 3
1.57b how to change the search header?
crazygamer.uk I am still trying to get down to the bottom of the issues on my site and something i had sorted has just reappeared and now i cannot get the search bar to resize at all.
moment you load the page you will see the issue straight away, i went to my template and altered the tpl_search_header.php to adjust the sizes to no avail.
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_search_header.php 4142 2006-08-15 04:32:54Z drbyte $
*/
$content = '';
$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get');
$content .= zen_draw_hidden_field('main_page', FILENAME_ADVANCED_SEARCH_RESULT);
$content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
$content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" placeholder="' . HEADER_SEARCH_DEFAULT_TEXT . '" aria-label="' . HEADER_SEARCH_DEFAULT_TEXT . '" ');
$content .= ' ';
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
$content .= zen_image_submit(BUTTON_IMAGE_SEARCH, HEADER_SEARCH_BUTTON);
} else {
$content .= '<input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 60px" />';
}
$content .= '</form>';
is the full .php file and the line i edited is below, the line i edited didn't have the style="width: 100px" in but i noticed this was present in other versions of the same file from the standardized template versions included with zencart 1.57b so i tried adding that too, im getting no php errors ect.
$content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" placeholder="' .
All I did to get this to return was re add USD as a currency in a vain attempt to resolve a "$ is not defined" error. I then had to work out how to get it to correctly display the prices going through the various expected stages of prices showing as "0" and then in dollars when clearly the admin panel settings show it should be in gbp. I eventually got to the checkout page and im still getting a SQL_NONCE_ERROR code when i try to submit a card payment to square:wacko: