PDA

View Full Version : Featured Products



michael_s
09-12-2007, 12:41 PM
Changed the button in featured admin to be a little clearer. Instead of delete it now says remove as featured item.

NOTE: COMPLETE STEPS 1 AND 2 for each language you use.


1. upload catalog/admin/includes/languages/english/images/buttons/button_delete_featured.gif
2. in catalog/admin/featured.php
***FIND***
$contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_FEATURED, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->featured_id) . ')');

***CHANGE TO:***
$contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_delete_featured.gif', IMAGE_DELETE_FEATURED) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_FEATURED, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->featured_id) . ')');

2. In catalog/admin/includes/languages/english/featured.php:

***ADD***
define('IMAGE_DELETE_FEATURED', 'Remove product from Featured Product list');

***CHANGE***
define('TEXT_INFO_DELETE_INTRO', 'Are you sure you want to delete this featured product?');

***TO***
define('TEXT_INFO_DELETE_INTRO', 'Are you sure you want to remove this product from the Featured Product list?');

***FIND***
define('TEXT_INFO_HEADING_DELETE_FEATURED', 'Delete Featured Product');

***CHANGE TO***
define('TEXT_INFO_HEADING_DELETE_FEATURED', 'Remove From Featured Product List');

3. in catalog/admin/featured.php
***FIND***
$contents[] = array('align' => 'center', 'text' => '' . tep_image_button('button_edit.gif', IMAGE_EDIT) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_FEATURED, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->featured_id . '&action=edit') . ') ' . tep_image_button('button_delete.gif', IMAGE_DELETE) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_FEATURED, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->featured_id . '&action=delete') . ')');

***CHANGE TO:***
$contents[] = array('align' => 'center', 'text' => '' . tep_image_button('button_edit.gif', IMAGE_EDIT) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_FEATURED, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->featured_id . '&action=edit') . ') ' . tep_image_button('button_delete_featured.gif', IMAGE_DELETE_FEATURED) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_FEATURED, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->featured_id . '&action=delete') . ')');


***FIND***
$heading[] = array('text' => '' . TEXT_INFO_HEADING_DELETE_FEATURED . '');

***CHANGE TO***
$heading[] = array('text' => ' ' . TEXT_INFO_HEADING_DELETE_FEATURED . '');


More... (http://www.oscommerce.com/community/contributions,651)