Web Authoring
  Home arrow Web Authoring arrow Page 6 - Personalizing osCommerce
IBM Rational Software Development Conference
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB AUTHORING

Personalizing osCommerce
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 31
    2004-12-06

    Table of Contents:
  • Personalizing osCommerce
  • What to know before you make changes
  • Logo and colors
  • Site content
  • InfoBoxes, step one
  • InfoBoxes, steps two and three

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    Iron Speed
     
    ADVERTISEMENT

    TestComplete™ automates software testing for a fraction of what the big guys charge. Easy functional and load testing for all Windows, .NET, Java and Web apps. Download a free trial now.

    Personalizing osCommerce - InfoBoxes, steps two and three
    (Page 6 of 6 )

    Next, you need to define the links you have just created. Provided your site is produced in English, you’ll need to browse to the following directory:

    var/www/html/catalog/includes/languages

    and download the English.php file.

    Open the file and add the following code pretty much anywhere:

    // links box heading
    define('BOX_HEADING_LINKS', 'Links');

    That will give your box its heading. Now define the links themselves:

    // Links box text
    define('BOX_LINKS_CREATE_ACCOUNT', 'Create An Account');
    define('BOX_LINKS_LOGIN', 'Login');
    define('BOX_LINKS_LOGOFF', 'Logoff');
    define('BOX_LINKS_MY_ACCOUNT', 'My Account');
    define('BOX_LINKS_CART_CONTENTS', 'Cart Contents');
    define('BOX_LINKS_CHECKOUT', 'Checkout');
    define('BOX_LINKS_NEW_LINK', 'New link');


    The text inside the single quotes is the text that is displayed in the box as the link, and the text in capitals is the action that occurs when the link is clicked. In order for this to work, you will need to associate the actions with a PHP file, this is done using the filenames.php file that is held in the following location:

    var/www/html/catalog/includes

    To associate an action with a page, simply add a line of code like this almost anywhere in the file:

    define('FILENAME_NEW_LINK', new_link.php');

    Save and upload the files to their original locations, and proceed directly to step three, inserting the box on a page. You’ll need to download and edit either the column_left.php or column_right.php file, depending on which side of the page you want the box to appear. Both of these files appear in the includes directory also. Open whichever is applicable and simply add the following statement:

    require(DIR_WS_BOXES . 'links.php');

    Save and upload the file, then open the catalog in your browser. Your box should be there in all its beautiful glory!

    There are many more minor tweaks that can give your online store its individual personality, and the addition of a huge bank of downloadable modules and code to the community services can take things even further. I hope that I’ve given you enough information to get yourself going, and enough inspiration to use the application in the first place.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · the up and coming program is Zen Cart a fork of the osC project that is leaps and...
       · As always when making changes to any software - particularly e-commerce software get...
       · Thanks for the sound advice, whilst not discussed in this article, security is...
       · Zen Cart owes its very existence to osCommerce and like any child it will eventually...
       · An excellent point of veiw and one that I share myself.
       · Yes, osCommerce is a fairly good app to build an online shop ...But when it's...
       · Thank-you sooooooooo much for the info. This was more than enough to get me started....
     

    WEB AUTHORING ARTICLES

    - Yahoo Pipes: Worth a Look
    - Completing an EAR
    - Building and Deploying an EAR
    - New Nuke Security Sentinel: Worth Taking a C...
    - Administering Your CMS-Based Web Site
    - What You Need to Know Before Using a CMS
    - Introducing the Google Maps API
    - An Overview of the Yahoo User Interface Libr...
    - Basic configuration of osCommerce, concluded
    - Basic configuration of osCommerce, continued
    - Basic configuration of osCommerce
    - Deploying your Site with PHPEclipse, continu...
    - Deploying your Site with phpEclipse
    - Macromedia Captivate Review
    - Macromedia and Adobe Planning to Tie the Knot






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway