CyberOffice eCommerce - Online References
Related topic(s):-
The default username to the online Shop Manager is "Administrator", password is "Password".
Please click on a menu on the left panel for instant help related to that function...
Navigate to:-
Installation | Sample Codes | Sample Page | CyberClub | CyberBuild
Go Back to Previous Page

CyberOffice eCommerce is a Web-based business solution platform built on top of Microsoft Internet Information Services (IIS). Thus it works only if your Web site is hosted under Windows NT/2k/2k3/XP and uses the IIS as the Web server. To run it on a desktop computer, you need to install Microsoft Personal Web Server (PWS), a cut-down version of the full IIS. Click here for how to install / enable PWS.

When you run the setup program, it automatically expands and puts the appropriate files on to the appropriate locations, including registration of DLLs and ODBCs. You might however still need to set the correct NT user permissions on certain files: For each NT/2k/2k3/XP computer, there is a special user account named IUSR_xxx (where "xxx" is the name of the computer). IUSR will need to have execute permission on CyberOffice DLLs (CyberShop.Dll, CyberClub.Dll, and CyberBuild.Dll). By default, they are either under c:\winnt\system32, c:\Windows\system32 or c:\inetpub\wwwroot\cgi-bin. You will also need to allow Write permission on the folder that contains the database(s). By default, it will be c:\inetpub\wwwroot\_private. Use Windows Explore to locate the files/folder and change the permission on the file properties.

If Norton Anti-virus is running on your desktop, you must disable the "Script Blocking" feature of the program.

The installation creates icons on the desktop that access the local Web server on your computer, e.g.  http://localhost/shopping_cart. The icon will work once the Web server is properly configured.

Having tested the programs or developed the site on your desktop, you need to upload them to your live or production server. Shared ISP installation check list gives you detailed counts of the procedures.

Some hosting ISPs might prohibit custom DLL components on their servers. If that happens to you, contact us immediately to get a list of alternative ISPs who endorse our software.

Numerous other payment agents are supported, some of them are listed under Global/System Settings. Contact us for more information.

Consult the full Development Guide for further technical information on the program(s).

Prev. Page Back to Top
Sample Codes for CyberShop

The following codes are useful if CyberOffice Shopping Cart (CyberShop) is used in a standalone application, i.e. not in conjunction with CyberOffice Warehouse Builder.

Idiot-Proof Coding

Add your product information to the Inventory Table under Shop Manager --> Inventory Manager. Then insert

<script src="view_product.asp?ProductID=myproduct"></script>

into a Web page to display the item. Here myproduct is the product reference code. You can display a range of items by editing (in Notepad) view_product.asp page and setting

Session(DSN+"ExactMatch") = False

Alternatively, use

<script src="view_product.asp?ProductType=mytype"></script>

to list a given type of products on the page. You can In addition, use

<script src="view_product.asp?ProductID=-search-"></script>
<script src="view_product.asp?ProductID=-viewcart-"></script>

to display a search box and "view cart" button on any page. Qualify view_product.asp with a full domain name + folder.

Adding Affiliate

To track the referer from another site, simply insert the following code to any page that wishes to
claim the referer.

<script src="affiliate.asp?id=site_id"></script>

The "affiliate.asp" page is located in the shopping cart folder. You should qualify it with the full domain + path. and modify the "id" variable for each referer site. You can also simply link to affiliate1.asp?id=site_id.

Manually Coding

CyberShop uses a universal HTML form to interface with any shopping pages on your site. When a visitor clicks on the "Add Item" button, the product is added to and displayed in a shopping cart. From there the software takes care of everything for you. The Sample Page illustrates most of the formats presented below.

There are five basic attributes for each shopping item:

ProductID, ProductType, ProductDesc, Quantity, Price

ProductType specifies the appropriate group on which shipping fee is to be calculated. You need simply to fill in the "values" as illustrated below:

Add Item

<form method="POST" action="view_cart.asp">

<input type="hidden" name="ProductID" value="SW-CLOTH-010">
<input type="hidden" name="ProductType" value="CLOTH">
input type="hidden" name="ProductDesc" value="LINEA ESTIVA JACKET SIZE: M">
input type="hidden" name="Quantity" value="1">
input type="hidden" name="Price" value="35.00">
<p><input type="image" src="additem.gif"> </p>


View Cart:

<form method="POST" action="view_cart.asp">
<p><input type="image" src="viewcart.gif"> </p>

Some additional fields can be used for a greater control on the shopping cart:

UOM Unit of Measure for the item. If not set, the default is "EA".
TaxRate Import (export) tax rate. If present, will activate the Tax Exempt form.
BaseQuantity Weight or number of components in a packaged item. This information is used for shipping fee calculation.
Coupon Coupon code to be used for the item. When present it will pre-fill the coupon code field on the popup coupon sheet.
GoBack The page that "Back to Shop" link on the shopping cart pages will point to. Useful when using CyberShop with frames.
Point Points that are required to redeem the product via CyberOffice Buyer's Club points earned through previous purchases.
Bonus Bonus points after the purchase of the product.
Download File(s) to be downloaded after payment. Mainly for real-time paid services. Multiple files separated by ",".
Taxable Yes or No (default is "Yes") to indicate if the item is subject to the State, Country or GST tax.
DeliveryMode 0, -1, or 1. Nonzero to display a "Schedule" button on the shopping cart page. 1 for item that has to have its own time slot. -1 for item that can share time slot with others.

View Order Status / Shipping Fee:

The page on which customers can view their order status is view_status.asp. You should put a link to this page on your Web site. Another useful page is view_shippingfee.asp which exposes the shipping-fee table in CyberShop.

Stock Level / Shopping Cart Monitoring:

CyberShop lets you monitor in real-time the stock level of your inventory. Typically, you would add your product items to CyberShop via Stock Monitoring. Then you simply call in your HTML pages,

<script src="view_stock.asp?ProductID=myproduct"></script>

where myproduct is the product reference code. Be sure to qualify "view_stock.asp" with the appropriate domain and path.

Special products: "-qty-",   "-amount-", "-point-" can be used to return the current contents of the shopping basket. Namely you can insert the following two codes on your shopping pages to display the information (see the sample page),

<script src="view_stock.asp?ProductID=-qty-"></script>
<script src="view_stock.asp?ProductID=-amount-"></script>
<script src="view_stock.asp?ProductID=-point-"></script>

Tip: More than one fields with the same name can be used in your shopping page. For example, if a shopping item has multiple choices, you can use a HTML <select name="ProductDesc"> tags to accomplish the task. See the sample page.

Prev. Page Back to Top

  Any comments, suggestions, or questions? Write Us!
  ©SmartWin Technology, CyberOffice eCommerce Platform 1997 - 2012