2. POINTS Features of Oscommerce Quick Admin/Front demo File Structure DB Structure Template Integration Module Development Main Modules used in oscommerce Resources
3. Features of Oscommerce Compatible with PHP 4 and MySQL - easily portable to version 5. Multi-lingual English, German and Spanish by default. Unlimited number of products and categories. Automatic setup of e-commerce payment systems: Authorize.net, 2Checkout.com, iPayment.de, PayPal.com, PsiGate.com, SECPay.com, and TrustCommerce.com; Many other add-on ecommerce payment systems, off-line (manual) credit card payments, and on-line payment processing. Multi-currency support via manual update from exchange rate server. Support for dynamic images (one image per product). Supports physical products as well as product downloads. Web-based administration module. Database backup and restore. Temporary and permanent shopping carts. Secure transactions with SSL (Secure Sockets Layer) support. Many shipping options including by weight, price, or destination. Real-time shipping quote integration with UPS, USPS. Zone-based shipping options as well as a free shipping option as part of Order Totals Module. Full tax functionality, included compounded taxes, different zones for different products.
4. DRAWBACK No Search-engine optimizations No XHTML/CSS based default layout XSS (The oscommerce platform suffers from a XSS vulnerability because it does not properly sanitize (process of removing sensitive information) ) No inbuilt template system
5. Quick Admin/Front demo Configuretion - Cache - quicker loading the next time it is accessed. Configuration -> cache Tools -> cache Categories Box File – does not exist Manufactures Box File – does not exist Also Purchased Module File does not exist GZIP Compression will speed up the time it takes for your osCommerce pages to load on most servers.Normal setting is 5 but if you have a lot of traffic set to 9. gzip compression to compress their web pages in order to save bandwidth. Download - link allows customer downloading of products after they are purchased. Catalog - The products expected section is a listing of any products that you have given an expected date to be in the store through the product's description area.
7. oscommerce-2.2rc2a Catalog admin : : Include Box (Folder) Language (Folder) Modules (Folder) Classes (Folder) Functions (Folder) column_left.php (Related to BOX folder) column_right.php (Related to BOX folder) database_tables.php (Related to list of all database file) filenames.php (Related to list of all php file) header.php footer.php
9. Template Integration In default oscommerce 2.2 rc2, 2.1, as no template system There is some template system Add-Ons BTS (Basic Template System) – for Programmer. STS (Simple Template System) – for designers – The output is in the form of $variables that you can place on your HTML template page.
10. Module Development How To Set Session $mysession = 5; tep_session_register(‘mysession'); echo ((tep_session_is_registered('testss'))>0) ? 'Mysession Value='.$_SESSION['testss'] : 'Mysession Value='.'Not Set'; tep_session_unregister('mysession'); session destroy Removing Add to cart when user is not logged in – tep_session_is_registered('customer_id') if (( STORE_SHOW_GUESTS_PRICES == 'true' ) && (! tep_session_is_registered('customer_id') ) ) { } else { echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.png', IMAGE_BUTTON_IN_CART); }?>
11. 1) products_last_view_item create field in products table ALTER TABLE `products` ADD `products_last_view_item` DATETIME NULL AFTER `products_gift_card` ; 2) $update_sql_data = array('products_last_view_item' => 'now()'); $sql_data_array = array_merge($sql_data_array, $update_sql_data); tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update', "products_id = '" . (int)$product_id . "'"); OR tep_db_query("update " . TABLE_PRODUCTS . " set products_last_view_item = now() where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); product_info.php (Set in top) 3) – box – $viewed_query = tep_db_query("select pd.products_name, p.products_image,p.products_last_view_item from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.language_id = '" . $languages_id . "' and pd.products_id = p.products_id order by p.products_last_view_itemdesc limit 1"); if ($viewed_info = tep_db_fetch_array($viewed_query)) { $name = $viewed_info['products_name']; $image = $viewed_info['products_image']; }
12. Main Modules used in oscommerce Ultimate SEO URLS(http://addons.oscommerce.com/info/2823) Administration Access Level Accounts 2.0 (http://www.oscommerce.com/community/contributions,1359) Image Resize – 1) During Upload in admin side 2) ‘on the fly’ image resize - http://addons.oscommerce.com/info/6941 Product Compare (http://addons.oscommerce.com/info/2192) Modern Design admin (http://www.pedroescribano.com/oscommerce-downloads/oscommerce-2.2rc2a-SPARX.zip)