Originally Posted by
lat9
Well
, I fixed that a couple of months ago and never uploaded the changes. Let me get v1.0.3 packaged and uploaded and then I'll post the change to get this working.
Following is the change to the zenCssButton function in /includes/functions/html_output.php to provide the emulation required to allow the Wish List button to operate properly:
Code:
if ($type == 'submit'){
// form input button
//-bof-v1.0.3a
if ($parameters != '') {
// If the input parameters include a "name" attribute, need to emulate an <input type="image" /> return value
// by adding a _x to the name parameter (thanks to paulm for providing the fix for Zen Cart v1.3.6!).
if (preg_match('/name="([a-zA-Z0-9\-_]+)"/', $parameters, $matches)) {
$parameters = str_replace('name="' . $matches[1], 'name="' . $matches[1] . '_x', $parameters);
}
// If the input parameters include a "value" attribute, remove it since that attribute will be set to the input
// text string.
if (preg_match('/(value="[a-zA-Z0=9\-_]+")/', $parameters, $matches)) {
$parameters = str_replace($matches[1], '', $parameters);
}
}
//-eof-v1.0.3a
$css_button = '<input class="' . $mouse_out_class . '" ' . $css_button_js . ' type="submit" value="' .$text . '"' . $tooltip . $parameters . ' />';
}
Bookmarks