osCommerce Flash Carousel 3.2 Installation
Upgrade
osCommerce Flash Carousel 3.0.1 to osCommerce Flash Carousel 3.2
Upgrade
osCommerce Flash Carousel 3.0 to osCommerce Flash Carousel 3.2
osCommerce Flash Carousel Usage
Audience
This guide is intended for osCommerce store owner who want to use osCommerce Flash Carousel to deliver selected
products to the customers.
Required Knowledge
In order to install osCommerce Flash Carousel you need to edit some files. If you have unmodified store you can easily
install it. If you have modified store and don’t know code editing you can buy installation service.
Requirement
You need to have osCommerce Online Merchant v2.2 RC2.
What is osCommerce Flash Carousel?
This intruction to osCommerce Flash Carousel is intended to give you summary of this addon.
osCommerce Flash Carousel is an addon for serve products with fashionable flash styles. It makes you to deliver your
selected products to your customers with an attractive way.
osCommere Flash Carousel delivers your selected products, which were selected at your store managemant panel, not only
at main page but also all categories page.
More powerful, more configurable…
Installation
Step 1:
Before you begin please backup all your store files and database.
Step 2:
Copy all files and folders from new_files folder to your store. You can use the FTP to transfer all files and folders
to your server.
Step 3:
If your store is new and you have not made any modifications, please copy all files from modified_files to your store.
Then go to the Step 14. If your store is modified please follow the manual edits from Step 4.
Step 4:
Add the following lines to /catalog/admin/includes/filenames.php
1 | define('FILENAME_FLASH_CAROUSEL', 'flash_carousel.php'); |
Step 5:
Add the following line to /catalog/admin/includes/database_tables.php
1 | define('TABLE_FLASH_CAROUSEL', 'flash_carousel'); |
Step 6:
Edit the file /catalog/admin/includes/boxes/catalog.php
Find below code:
1 2 3 | '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>'); |
Add before:
1 2 3 | '<a href="' . tep_href_link(FILENAME_FLASH_CAROUSEL, '', 'NONSSL') . '" class="menuBoxContentLink">'.BOX_FLASH_CAROUSEL_PRODUCTS.'</a><br />' . |
Step 7:
Edit the file /catalog/admin/includes/functions/general.php
End of the file before ?> tag add below code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | function tep_cfg_pull_down_flash_styles($style_name) { if ($handle = opendir(DIR_FS_DOCUMENT_ROOT.'kampanya')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && is_dir(DIR_FS_DOCUMENT_ROOT.'kampanya/'.$file)) { $handle_deep = opendir(DIR_FS_DOCUMENT_ROOT.'kampanya/'.$file); while (false !== ($file_deep = readdir($handle_deep))) { if ($file_deep != "." && $file_deep != ".." && is_dir (DIR_FS_DOCUMENT_ROOT.'kampanya/'.$file.'/'.$file_deep)) { $files_deep[]= array('id' => $file.'::'.$file_deep, 'text' => $file.'('.$file_deep.')'); } } closedir($handle_deep); } } closedir($handle); } return tep_draw_pull_down_menu('configuration_value', $files_deep, $style_name); } |
Step 8.1:
Edit the file /catalog/admin/includes/languages/english.php
Find:
1 | define('BOX_CATALOG_PRODUCTS_EXPECTED', 'Products Expected'); |
Add before:
1 | define('BOX_FLASH_CAROUSEL_PRODUCTS', 'Flash Carousel'); |
Step 8.2:
Edit the file /catalog/admin/includes/languages/espanol.php
Find:
1 | define('BOX_CATALOG_PRODUCTS_EXPECTED', 'Próximamente'); |
Add before:
1 | define('BOX_FLASH_CAROUSEL_PRODUCTS', 'Flash Carousel'); |
Step 8.3:
Edit the file /catalog/admin/includes/languages/german.php
Find:
1 | define('BOX_CATALOG_PRODUCTS_EXPECTED', 'erwartete Artikel'); |
Add before:
1 | define('BOX_FLASH_CAROUSEL_PRODUCTS', 'Flash Carousel'); |
Step 8.4:
Edit the file /catalog/admin/includes/languages/turkish.php (if you have)
Find:
1 | define('BOX_CATALOG_PRODUCTS_EXPECTED', 'Beklenen Ürünler'); |
Add before:
1 | define('BOX_FLASH_CAROUSEL_PRODUCTS', 'Flash Carousel'); |
Step 9:
Add the following line to /catalog/includes/database_tables.php
1 | define('TABLE_FLASH_CAROUSEL', 'flash_carousel'); |
Step 10:
Add the following line to /catalog/includes/filenames.php
1 | define('FILENAME_FLASH_CAROUSEL', 'flash_carousel.php'); |
Step 11:
Edit the file /catalog/includes/application_top.php
Find below line:
1 | tep_expire_specials(); |
Add below lines after:
1 2 3 | // auto expire flash carousel products require(DIR_WS_FUNCTIONS . 'flash_carousel.php'); tep_expire_flash_carousel(); |
Step 12:
Edit the file /catalog/include/functions/general.php
End of the file before ?> tag add below code:
1 2 3 4 5 6 7 8 9 10 11 | function tep_array_values_to_string_flash_carousel($array, $separator = ',') { $get_string = ''; if (sizeof($array) > 0) { while (list($key, $value) = each($array)) { $get_string .= $value . $separator; } $remove_chars = strlen($separator); $get_string = substr($get_string, 0, -$remove_chars); } return $get_string; } |
Step 13:
Edit /catalog/index.php (two instances)
Find below lines:
1 2 3 | <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> |
Add before:
1 2 3 | <tr> <td><?php include(DIR_WS_MODULES . FILENAME_FLASH_CAROUSEL); ?></td> </tr> |
Step 14:
Create the database table for flash carousel products. Open database_sql folder and choose appropriate file.
For English run flash_carousel_english.sql file with sql program like phpMyAdmin.
For Turkish run flash_carousel_turkish.sql file with sql program like phpMyAdmin.
For other languages you can use flash_carousel_english.sql. If you translate this file please send us. We can put this
file further osCommerce Flash Carousel releases.
Step 15:
Chmod 777 catalog/kampanya folder.
Step 16:
At this step we will modify catalog/includes/configure.php file. When you see webpage at “http://www.xxxx.xxx”
osCommerce Flash Carousel works as expected but when you try “http://xxxxx.xxx” osCommerce Flash Carousel doesn’t show.
In order to work both osCommerce Flash Carousel at both “http://www.xxxx.xxx” and “http://xxxxx.xxx” please follow
below instrauction.
Open catalog/includes/configure.php and add below line to the top of the file after
1 | $dom_name = $_SERVER["SERVER_NAME"]; |
And find below lines.
1 2 3 4 | define('HTTP_SERVER', 'http://www.my-current-domain-name.com'); define('HTTPS_SERVER', 'https://www.my-current-domain-name.com'); define('HTTP_COOKIE_DOMAIN', 'www.my-current-domain-name.com'); define('HTTPS_COOKIE_DOMAIN', 'www.my-current-domain-name.com'); |
Replace with the below lines.
1 2 3 4 | define('HTTP_SERVER', 'http://' . $dom_name); define('HTTPS_SERVER', 'https://' . $dom_name); define('HTTP_COOKIE_DOMAIN', $dom_name); define('HTTPS_COOKIE_DOMAIN', $dom_name); |