Oscommerce<br />By: PrashantShekher<br />
POINTS<br />Features of Oscommerce<br />Quick Admin/Front  demo<br />File Structure <br />DB Structure <br />Template Inte...
Features of Oscommerce<br />Compatible with PHP 4 and MySQL - easily portable to version 5.<br />Multi-lingual English, Ge...
DRAWBACK<br />No Search-engine optimizations<br />No XHTML/CSS based default layout<br />XSS (The oscommerce platform suff...
Quick Admin/Front  demo<br />Configuretion - <br />Cache - quicker loading the next time it is accessed.<br />Configuratio...
Basic Layout /File or Folder Structure<br />
oscommerce-2.2rc2a<br />Catalog<br />admin<br />	   :<br />	   :<br />Include<br />Box (Folder)<br />Language (Folder)<br ...
DB Structure<br />tep_db_connect() <br />tep_db_close($link = 'db_link') <br />tep_db_error($query, $errno, $error) <br />...
Template Integration<br />In default oscommerce 2.2 rc2, 2.1, as no template system <br />There is some template system Ad...
Module Development<br />How To Set Session<br />	$mysession = 5;<br />tep_session_register(‘mysession');<br />	echo ((tep_...
1)    products_last_view_item create field in products table<br />	ALTER TABLE `products` ADD `products_last_view_item` DA...
Main Modules used in oscommerce<br />Ultimate  SEO URLS(http://addons.oscommerce.com/info/2823)<br />Administration Access...
Resources<br />documentation.pdf<br />tep_database-pr2.2-CVS.pdf<br />http://www.oscommerce.info/kb/osCommerce<br />
Upcoming SlideShare
Loading in …5
×

Oscommerce Presentation

2,651 views
2,505 views

Published on

Presentation given by expert OsCommerce developer to other team members.

Published in: Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,651
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
92
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Oscommerce Presentation

  1. 1. Oscommerce<br />By: PrashantShekher<br />
  2. 2. POINTS<br />Features of Oscommerce<br />Quick Admin/Front  demo<br />File Structure <br />DB Structure <br />Template Integration<br />Module Development <br />Main Modules used in oscommerce<br />Resources<br />
  3. 3. Features of Oscommerce<br />Compatible with PHP 4 and MySQL - easily portable to version 5.<br />Multi-lingual English, German and Spanish by default.<br />Unlimited number of products and categories.<br />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.<br />Multi-currency support via manual update from exchange rate server.<br />Support for dynamic images (one image per product).<br />Supports physical products as well as product downloads.<br />Web-based administration module.<br />Database backup and restore.<br />Temporary and permanent shopping carts.<br />Secure transactions with SSL (Secure Sockets Layer) support.<br />Many shipping options including by weight, price, or destination.<br />Real-time shipping quote integration with UPS, USPS.<br />Zone-based shipping options as well as a free shipping option as part of Order Totals Module.<br />Full tax functionality, included compounded taxes, different zones for different products.<br />
  4. 4. DRAWBACK<br />No Search-engine optimizations<br />No XHTML/CSS based default layout<br />XSS (The oscommerce platform suffers from a XSS vulnerability because it does not properly sanitize (process of removing sensitive information) )<br />No inbuilt template system<br />
  5. 5. Quick Admin/Front  demo<br />Configuretion - <br />Cache - quicker loading the next time it is accessed.<br />Configuration -> cache<br />Tools -> cache<br />Categories Box File – does not exist<br />Manufactures Box File – does not exist<br />Also Purchased Module File does not exist<br />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.<br />gzip compression to compress their web pages in order to save bandwidth.<br />Download - link allows customer downloading of products after they are purchased.<br />Catalog -<br />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.<br />
  6. 6. Basic Layout /File or Folder Structure<br />
  7. 7. oscommerce-2.2rc2a<br />Catalog<br />admin<br /> :<br /> :<br />Include<br />Box (Folder)<br />Language (Folder)<br />Modules (Folder)<br />Classes (Folder)<br />Functions (Folder)<br />column_left.php (Related to BOX folder)<br />column_right.php (Related to BOX folder)<br />database_tables.php (Related to list of all database file)<br />filenames.php (Related to list of all php file)<br />header.php<br />footer.php<br />
  8. 8. DB Structure<br />tep_db_connect() <br />tep_db_close($link = 'db_link') <br />tep_db_error($query, $errno, $error) <br />tep_db_query($query, $link = 'db_link') <br />tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') <br />tep_db_fetch_array($db_query) <br />tep_db_num_rows($db_query) <br />tep_db_data_seek($db_query, $row_number) <br />tep_db_insert_id() <br />tep_db_free_result($db_query) <br />tep_db_fetch_fields($db_query) <br />tep_db_output($string) <br />tep_db_input($string) <br />tep_db_prepare_input($string) <br />
  9. 9. Template Integration<br />In default oscommerce 2.2 rc2, 2.1, as no template system <br />There is some template system Add-Ons<br />BTS (Basic Template System) – for Programmer.<br />STS (Simple Template System) – for designers – The output is in the form of $variables that you can place on your HTML template page.<br />
  10. 10. Module Development<br />How To Set Session<br /> $mysession = 5;<br />tep_session_register(‘mysession');<br /> echo ((tep_session_is_registered('testss'))>0) ? 'Mysession Value='.$_SESSION['testss'] : 'Mysession Value='.'Not Set';<br />tep_session_unregister('mysession'); session destroy<br />Removing Add to cart when user is not logged in –<br />tep_session_is_registered('customer_id')<br />if (( STORE_SHOW_GUESTS_PRICES == 'true' ) && (! tep_session_is_registered('customer_id') ) ) {<br /> } else { echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.png', IMAGE_BUTTON_IN_CART); }?><br />
  11. 11. 1) products_last_view_item create field in products table<br /> ALTER TABLE `products` ADD `products_last_view_item` DATETIME NULL AFTER `products_gift_card` ;<br />2) $update_sql_data = array('products_last_view_item' => 'now()');<br /> $sql_data_array = array_merge($sql_data_array, $update_sql_data);<br />tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update', "products_id = '" . (int)$product_id . "'");<br /> OR<br />tep_db_query("update " . TABLE_PRODUCTS . " set products_last_view_item = now() where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");<br />product_info.php (Set in top)<br />3) – box –<br /> $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");<br /> if ($viewed_info = tep_db_fetch_array($viewed_query)) {<br /> $name = $viewed_info['products_name'];<br /> $image = $viewed_info['products_image'];<br /> }<br />
  12. 12. Main Modules used in oscommerce<br />Ultimate SEO URLS(http://addons.oscommerce.com/info/2823)<br />Administration Access Level Accounts 2.0<br />(http://www.oscommerce.com/community/contributions,1359)<br />Image Resize – <br />1) During Upload in admin side<br />2) ‘on the fly’ image resize - http://addons.oscommerce.com/info/6941<br />Product Compare<br />(http://addons.oscommerce.com/info/2192)<br />Modern Design admin (http://www.pedroescribano.com/oscommerce-downloads/oscommerce-2.2rc2a-SPARX.zip)<br />
  13. 13. Resources<br />documentation.pdf<br />tep_database-pr2.2-CVS.pdf<br />http://www.oscommerce.info/kb/osCommerce<br />

×