• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Oscommerce Presentation
 

Oscommerce Presentation

on

  • 2,888 views

Presentation given by expert OsCommerce developer to other team members.

Presentation given by expert OsCommerce developer to other team members.

Statistics

Views

Total Views
2,888
Views on SlideShare
2,876
Embed Views
12

Actions

Likes
2
Downloads
81
Comments
0

1 Embed 12

http://www.slideshare.net 12

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Oscommerce Presentation Oscommerce Presentation Presentation Transcript

    • Oscommerce
      By: PrashantShekher
    • POINTS
      Features of Oscommerce
      Quick Admin/Front  demo
      File Structure
      DB Structure
      Template Integration
      Module Development
      Main Modules used in oscommerce
      Resources
    • 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.
    • 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
    • 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.
    • Basic Layout /File or Folder Structure
    • 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
    • DB Structure
      tep_db_connect()
      tep_db_close($link = 'db_link')
      tep_db_error($query, $errno, $error)
      tep_db_query($query, $link = 'db_link')
      tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link')
      tep_db_fetch_array($db_query)
      tep_db_num_rows($db_query)
      tep_db_data_seek($db_query, $row_number)
      tep_db_insert_id()
      tep_db_free_result($db_query)
      tep_db_fetch_fields($db_query)
      tep_db_output($string)
      tep_db_input($string)
      tep_db_prepare_input($string)
    • 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.
    • 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); }?>
    • 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'];
      }
    • 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)
    • Resources
      documentation.pdf
      tep_database-pr2.2-CVS.pdf
      http://www.oscommerce.info/kb/osCommerce