You can try this change to the file:
/includes/modules/
discount_coupon/header_php.php
I assume that you meant:
/includes/modules/pages/discount_coupon/header_php.php
but there is no change in the text displayed to the customer in:
/index.php?main_page=popup_coupon_help&cID=51
after inserting the code in red.
OR/includes/templates/template_default/popup_coupon_help/tpl_main_page.php
Text is displayed as expected in the coupon popup window now.
Do I leave the code in both files or just one? OR have I really messed things up thinking that I am helping?
Code:
$cats = array();
$skip_cat_restriction = true;
Added RED code here in front of existing code in blue
while (!$get_result->EOF) {
if ($get_result->fields['coupon_restrict'] == 'N') {
$restrict = TEXT_CAT_ALLOWED;
} else {
$restrict = TEXT_CAT_DENIED;
}
if ($get_result->RecordCount() != 1 and $get_result->fields['category_id'] != '-1') {
$result = $db->Execute("SELECT * FROM " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.categories_id = cd.categories_id
and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' and c.categories_id='" . $get_result->fields['category_id'] . "'");
$cats[] = array("validity"=> ($get_result->fields['coupon_restrict'] =='N' ? 'A' : 'D'), 'name'=> $result->fields["categories_name"], 'link'=>'<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . (int)$result->fields['categories_id']) . '">' . $result->fields["categories_name"] . '</a>' . $restrict);
}
$get_result->MoveNext();
}
if ($skip_cat_restriction == false || sizeof($cats) == 0) $cats[] = array("link" => TEXT_NO_CAT_RESTRICTIONS);
sort($cats);
$mycats = array();
Bookmarks