|
|
||||
Changing the sales tax will involve making a very simple edit to each of three files that control the sales tax function. The first two are index.html and nocookie.html. When first installed, these pages set the sales tax to a value of 5%, expressed in decimal format.
index.html:
Click <a href="cart.cgi?test=main.shtml&link-to=nocookie.html&set-cookie:tax=0.05">here</a>nocookie.html:
Click <a href="cart.cgi?set-cookie:tax=0.05&link-to=main.shtml">here</a>To change them simply replace the default tax value, shown in bold, with your own.
The next page to edit is checkout.shtml. This page includes a menu for selecting sales tax options:
<select name="tax"> <option <!--#exec cgi="cart.cgi?is-equal:tax=0.05&true=SELECTED&false=*" --> value="0.05">Maryland <option <!--#exec cgi="cart.cgi?not-equal:tax=0.05&true=SELECTED&false=*" --> value="0.00">Out of state </select>Again, replace the default tax values, shown in bold, with your own.
Yes. In fact, the netShop was designed with this and other features in mind. As discussed in the IC Tech. Ref. Document: netShop - V. The Catalog Pages, the rendering engine uses templates to build the page, which may use whatever HTML you desire. The template that is used in the cart catalog page main.shtml, is list.html. There are quite a few ways to add thumbnail images; here is perhaps the simplest:
When the shopping cart sees this code, it will replace {id} with the appropriate product number. The resulting code, in this case, would read, <img src="00012.jpg">.
Using variations on this example, you can achieve any number of effects. For example, add a hyperlink to the thumbnail like so:
<a href="{id}.html"><img src="{id}.jpg"></a>Yet another way of doing this would require that you add an attribute for an image in your products file like so:
0125KF name=Kung Fu Masters Vol. 125 price=2500 fmt=DVD img=/images/kungfu-mastvol125.jpg
Then, like step three above, add corresponding code to list html. In this case: <img src="{img}">
When main.shtml is parsed (which will include list.html), the correct image would be displayed for the product.
Yes. The easiest way to do this is to use the pages you've built as a guide for the cart's main.shtml and list.html pages. Simply format these pages to follow the look and layout you've already created. For more information on these pages, please see the IC Tech. Ref. Document: netShop - V.The Catalog Pages.
To implement color, size or style selections for products like clothing, you need to create separate products for each possible variation. So, for example, if you offer 1 t-shirt that is available in three sizes and three colors, you'd have a total of 9 items in your products file.
Yes, there are several different ways to do this.
By default, the products shown on main.shtml are sorted by their product IDs. This is controlled by the following tag on line 22 of main.shtml:
The bold text above is where you change the attribute to sort by (ID, name, price etc.) or add flags to modify the sorting behavior.
This is covered in the sorting section of the IC Tech. Ref. Document: netShop V. - The Catalog Pages.
Yes, and there are two ways of doing this. The first requires you to make use of one of the two available arguments (FILTERIN and FILTEROUT) that modify the cart's catalog pages based on a portion of your product ID. This is covered in more detail in the IC Tech. Ref. Document: netShop V. The Catalog Pages.
Your second option is to employ a third-party script such as cartsearch.cgi which was used in one of the example carts, Kung Fu Movies version 2. This particular script allows you to categorize your cart by any product attribute.
For more information on using other scripts with the netShop, please see the IC Tech. Ref. Document: netShop - VIII. Cart Add-ons.
Yes, in fact the netShop and your Internet Connection SSL account work very well together. The IC Tech. Ref. Document: netShop - VI. The Checkout and Order Pages details how to integrate a secure ordering process into your netShop.
Yes, in fact one of the sample netShop add-on scripts, testcart.pl, allows you to do just that. For more information on this please see the IC Tech. Ref. Document: netShop - VIII. Cart Add-ons.
Incorporating a flat shipping rate into your cart is fairly easy. Simply create another entry in the cookie that, by default, stores the tax information. Then, alter your checkout.shtml and order.shtml pages to figure that fee into the product totals.
This topic is discussed in more detail in the IC Tech. Ref. Documents: netShop - IV. The Welcome Pages and netShop - VI. The Checkout and Order Pages.
Yes, first create a new attribute in the products file for this. For example, here's an excerpt from a sample products file:
0125KF name=Kung Fu Masters Vols. 1-25 price=10000 fmt=DVD shp=2000 1125KF name=Kung Fu Masters Vol. 25 price=500 fmt=VHS shp=300
In the above, shipping (shp) for the two items shown is quite different. Next, alter your checkout.shtml and order.shtml pages to figure that fee into the product totals.
This topic is discussed in more detail in the IC Tech. Ref. Documents: netShop - IV. The Welcome Pages and netShop - VI. The Checkout and Order Pages.
Related Items