OK, everybody, if you want to enable CSS buttons and use gift certificates (doesn't anybody else out there use both of these features?) the only solution I've found to fix the "Edit" link on the Send Gift Certificate Confirmation page is as follows (applies to ZenCart 1.3.5):
1. Open up includes/functions/html_output.php and change this line:
Code:
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image, $alt, 'submit', $sec_class /*, $parameters = ''*/ );
to this:
Code:
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image, $alt, 'submit', $sec_class, $parameters);
2. Open up includes/modules/pages/gv_send/header_php.php and, in both places where it is found, change this line:
Code:
if (isset($_POST['edit_x']) || isset($_POST['edit_y'])) {
to this:
Code:
if (isset($_POST['edit_x']) || isset($_POST['edit_y']) || isset($_POST['edit'])) {
3. Finally, open up your template at includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_gv_send_default.php (if it doesn't exist there, copy the file there from includes/tempmlates/template_default/templates/tpl_gv_send_default.php)
Change this line:
Code:
<div class="buttonRow back"><?php echo zen_image_submit(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT, 'name="edit" value="edit"') ?></div>
to this:
Code:
<div class="buttonRow back"><?php echo zen_image_submit(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT, 'name="edit"') ?></div>
I know it's an ugly fix (modifying two untemplated files!? gasp) but it's the only way I can find to fix the problem. I'm still testing the results to make sure it doesn't break anything else on the site.
Ajeh? DrByte? Any better solution? Please?
Bookmarks