Diferent banner image depends on Language selection
Budget: €8 – €30 EUR
Introduction
Our Online shop (oscommerce) has 3 Languages If we want to display a diferent image for every language we just replace the function "tep_image" in the code with the function "tep_image_logo" for example for the image logo.gif we have <?php echo tep_image ('logo.gif', 'logo'); ?> we replace it with this <?php echo tep_image_logo ('logo.gif', 'logo'); ?> and put the logo.gif image on the Language folder, then it displays the image depends on the shops Language selection.
The work
Our Online shop has 2 areas where some banners appear the code is same for both areas. We need someone to convert the code for us in order to display different banners depending on the language selection.
explanations - files
Our Online shop has a folder named "functions" where the functions that are used from the php pages are stored. The function that is used to display diferent image for every language is inside the file functions/html_output.php and is the follow:
// Bof Output a logo in the selected language
function tep_image_logo($image, $alt = '', $params = '') {
global $language;
return tep_image(DIR_WS_LANGUAGES . $language . '/images/' . $image, $alt, '', '', $params);
}
// Eof Output a logo in the selected language
For the banner display, the shop has a special file called banner.php on the "functions" folder wich has the functions that are used to display and rotate the banner build in.
files that are used are attached
1. "admin/banner_manager.php" is the page for the definition of the image path, and dates visible.
2. "front/includes/functions/banner.php" has the banner functionality.
Our Online shop (oscommerce) has 3 Languages If we want to display a diferent image for every language we just replace the function "tep_image" in the code with the function "tep_image_logo" for example for the image logo.gif we have <?php echo tep_image ('logo.gif', 'logo'); ?> we replace it with this <?php echo tep_image_logo ('logo.gif', 'logo'); ?> and put the logo.gif image on the Language folder, then it displays the image depends on the shops Language selection.
The work
Our Online shop has 2 areas where some banners appear the code is same for both areas. We need someone to convert the code for us in order to display different banners depending on the language selection.
explanations - files
Our Online shop has a folder named "functions" where the functions that are used from the php pages are stored. The function that is used to display diferent image for every language is inside the file functions/html_output.php and is the follow:
// Bof Output a logo in the selected language
function tep_image_logo($image, $alt = '', $params = '') {
global $language;
return tep_image(DIR_WS_LANGUAGES . $language . '/images/' . $image, $alt, '', '', $params);
}
// Eof Output a logo in the selected language
For the banner display, the shop has a special file called banner.php on the "functions" folder wich has the functions that are used to display and rotate the banner build in.
files that are used are attached
1. "admin/banner_manager.php" is the page for the definition of the image path, and dates visible.
2. "front/includes/functions/banner.php" has the banner functionality.