<% Sub GetHelp (section)
	GenerateDisplayHeader "How to set up " & getsess("shippingcalc") & " " & getlang("langadminshipping")
	GenerateDisplayBodyHeader
	select case section
	case "other"
		%>
<P>The &quot;Other&quot; shipping calculation has been changed in <%=getlang("langcommonsoftwarename")%> 6.50, to allow greater flexibility with your shipping methods.</P>
<P>If you wish to an &quot;other&quot; form of shipping in <%=getlang("langcommonsoftwarename")%> 6.50, add it in the second section on this page, called &quot;


 Set up Other Shipping&quot;.</P>
<P>If you don't wish to add any other forms of shipping, change the Shipping Calculation to be Fixed, and delete anything in the top section of this page, in &quot;


 Set up Shipping (fixed)&quot;.<O:P></O:P><FONT face=Verdana><O:P></O:P><O:P></O:P><O:P></O:P><O:P></O:P><O:P></O:P></FONT><FONT face=Verdana><O:P></O:P></FONT><FONT face=Verdana><O:P></O:P></FONT><FONT face=Verdana><O:P></O:P></FONT><FONT face=Verdana><O:P></O:P></FONT></P>
<%
	case "lookup"
		%>
<P>Simply add your shipping names and prices to the shipmethods table. The shipmethods table can be edited from the "Edit Shipping" admin page. The shipping methods are then displayed on the shopcustomer.asp page and the customer selects the shipping method to be used from the list. Fields that need to be set in shipmethods table. If the smprice field is 0 or empty, the shipping is consider to be free:</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=113><p><B>shipmethod<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=95><p><B>smprice<O:P> </O:P></B></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=113><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=95><p>$4.00<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=113><p>Normal<O:P> </O:P></P></TD>
      <TD vAlign=top width=95><p>$2.00<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=113><p>Airmail<O:P> </O:P></P></TD>
      <TD vAlign=top width=95><p>$9.00<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=113><p>Download<O:P> </O:P></P></TD>
      <TD vAlign=top width=95><p>$0.00<O:P> </O:P></P></TD>
    </TR>
  </TBODY>
</TABLE>
<p><O:P>This would create 4 selectable shipping methods on the shopcustomer.asp page, the shipping cost is determined by the smprice field.</O:P><FONT face=Verdana><O:P></O:P><O:P></O:P><O:P></O:P><O:P></O:P><O:P></O:P></FONT><FONT face=Verdana><O:P></O:P></FONT><FONT face=Verdana><O:P></O:P></FONT><FONT face=Verdana><O:P></O:P></FONT><FONT face=Verdana><O:P></O:P></FONT></P>
<%
	case "fixed"
	%>
<p>For this you need to change two lines to <%=getlang("langcommonsoftwarename")%> Configuration.</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=208><p><B 
style="LAYOUT-GRID-MODE: line; COLOR: black;   ">xshippingcalc</B> </P></TD>
      <TD vAlign=top width=425><p>Fixed </P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=208><p><B>xfixedshippingmethod<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p>US Postal Service </P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=208><p><B>xFixedshippingcost<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p>3.00<O:P> </O:P></P></TD>
    </TR>
  </TBODY>
</TABLE>
<p>If you do not want the normal shipping methods form to display, set the following.</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=208><p><B>xshippingdatabaserecords<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p>No<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=208><p><B>xshippingform<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p>No will stop shipping form from being display<O:P> </O:P></P>
        <p>Yes will display the shipping form but customer cannot select method since it is fixed. <O:P></O:P></P></TD>
    </TR>
  </TBODY>
</TABLE>
<P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px">The xfixedshippingmethod is any words or method you pan to use.</P>
<%
	case "weight"
	%>
<p>Set the following value in Shop Configuration.</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=208><p><B>xshippingcalc<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p><B>Weight<O:P> </O:P></B></P></TD>
    </TR>
  </TBODY>
</TABLE>
<p>&nbsp;<%=getlang("langcommonsoftwarename")%> will calculate the shipping price automatically by reading the shipmethods table. You need to update this table to reflect your shipping methods and costs.</P>
<p>For example the following values:</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=113><p><B>shipmethod<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=123><p><B>ShipBaseCost<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=151><p><B>ShipExtraCost<O:P> </O:P></B></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=113><p>Airmail </P></TD>
      <TD vAlign=top width=123><p>5.00<O:P> </O:P></P></TD>
      <TD vAlign=top width=151><p>2.00 </P></TD>
    </TR>
    <TR>
      <td width=113><p>Standard<O:P> </O:P></P></TD>
      <TD vAlign=top width=123><p>3.95<O:P> </O:P></P></TD>
      <TD vAlign=top width=151><p>1.00<O:P> </O:P></P></TD>
    </TR>
  </TBODY>
</TABLE>
<p>ShipBaseCost is the amount that will be charged regardless of weight. </P>
<p>ShipExtra Cost is multiplied by weight and quantity</P>
<p>The total is the sum of these amounts.</P>
<p>If ShipBase cost is 0, then the base cost is SMPRICE</P>
<%
	case "quantity"
%>
<p>In shop configuration set</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=208><p><B>xshippingcalc<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p>Quantity<O:P> </O:P></P></TD>
    </TR>
  </TBODY>
</TABLE>
<p><%=getlang("langcommonsoftwarename")%> will calculate the shipping price automatically by reading the shipmethods table. You need to update this table to reflect your shipping methods and costs. For example the following values</P>
<TABLE border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=112><p><B>shipmethod<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipBaseCost<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipExtraCost<O:P> </O:P></B></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>0 </P></TD>
      <TD vAlign=top width=112><p>$2.00<O:P> </O:P></P></TD>
    </TR>
  </TBODY>
</TABLE>
<p>ShipBaseCost is the amount that will be charged regardless of quantity.</P>
<p>ShipExtraCost is multiplied by items</P>
<p>The total is the sum of those amount<FONT face=Verdana size=2>s</FONT></P>
<%
	case "quantityrange"
%>
<p>Set the following value in Shop Configuration.</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=208><p><B>xshippingcalc<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p><B>QuantityRange<O:P> </O:P></B></P></TD>
    </TR>
  </TBODY>
</TABLE>
<P>&nbsp;<O:P> <%=getlang("langcommonsoftwarename")%> will calculate the shipping price automatically by reading the shipmethods table. You need to update this table to reflect your shipping methods and costs. For example the following values </P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=112><p><B>shipmethod<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipBaseCost<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipExtraCost<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipOther1<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipOther2<O:P> </O:P></B></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>0<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>$2.00<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>0<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>$4.00<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>10<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p></p></TD>
      <TD vAlign=top width=112><p>$6.00<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>10<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>999<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Normal<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>0<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>1 </P></TD>
      <TD vAlign=top width=112><p>0<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Normal<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>2<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>$2.00<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>10<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Normal<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>3<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>$3.00<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>10<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>999<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112></TD>
      <TD vAlign=top width=112></TD>
      <TD vAlign=top width=112></TD>
      <TD vAlign=top width=112></TD>
      <TD vAlign=top width=112></TD>
    </TR>
  </TBODY>
</TABLE>
<p>The customer will see two selections: Normal and Express.</P>
<p><%=getlang("langcommonsoftwarename")%> looks up the quantity by comparing values in the Shipother1 and shipother2 fields. When it finds the correct range, it uses that to calculate the cost. Notice all the shipmethods are the same.&nbsp;</P>
<p>ShipBaseCost is the amount that will be charged regardless of quantity.<br />
ShipExtraCost is multiplied by items<br />
The total is the sum of those amounts<FONT face=Verdana size=2>&nbsp;<O:P> </O:P></FONT></P>
<%
	case "pricerange"
%>
<p>In shop configuration set</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=208><p><B>xshippingcalc<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p>PriceRange</P></TD>
    </TR>
  </TBODY>
</TABLE>
<p>The total cost of the order is compared against a range set in the shipmethods table. The lower limit for the price range is set by the Shipcost1 field and the high limit is set in the ShipCost2 field.</P>
<p>The price is whatever is in ShipBaseCost within that price range.&nbsp;<O:P> </O:P></P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=112><p><B>shipmethod<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipBaseCost<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipCost1<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipCost2<O:P> </O:P></B></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>0<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>0<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>10<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p></p></TD>
      <TD vAlign=top width=112><p>10<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>999<O:P> </O:P></P></TD>
    </TR>
  </TBODY>
</TABLE>
<%
	case "weightrange"
%>
<p>In shop configuration set</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=208><p><B>xshippingcalc<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p>WeightRange</P></TD>
    </TR>
  </TBODY>
</TABLE>
<p>The total weight of the products is compared against a range set in the shipmethods table.The ShipOther1 field contains the low limit and shipother2 is the high range limit. The price is whatever is in ShipBaseCost within that price range.</P>
<p>If there is an amount in ShipExtracost, it is added to the base cost using the following formula</P>
<p>&nbsp;The shipping routine subtracts the lowweight from the total products weight so please note that this shipping routine assumes that the base cost includes the shipping cost for a product which has a weight the same as the lowweight (shipother1).</P>
<p>Remainingweight=Totalweight-Loweight (shipother1)</P>
<p>extracost = RemainingWeight*ShipExtraCost</P>
<p>Total Shipping Cost = ShipBaseCost + ExtraCost&nbsp;<O:P> </O:P></P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=112><p><B>shipmethod<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipBaseCost<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipExtraCost<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipOther1<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=112><p><B>ShipOther2<O:P> </O:P></B></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>0<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>$2.00<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>0<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>$4.00<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>5<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>10<O:P> </O:P></P></TD>
    </TR>
    <TR>
      <TD vAlign=top width=112><p>Express<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p></p></TD>
      <TD vAlign=top width=112><p>$6.00<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>10<O:P> </O:P></P></TD>
      <TD vAlign=top width=112><p>999<O:P> </O:P></P></TD>
    </TR>
  </TBODY>
</TABLE>
<%
	case "product"
%>
<p>In shop configuration set</P>
<TABLE border=0 align="center" cellPadding=0 
cellSpacing=0>
  <TBODY>
    <TR>
      <TD vAlign=top width=208><p><B>xshippingcalc<O:P> </O:P></B></P></TD>
      <TD vAlign=top width=425><p>Product </P></TD>
    </TR>
  </TBODY>
</TABLE>
<p>Each product being purchased is read from the database to retrieve the shipping cost. The cost can be stored in any unused field in the products table.By default the weight field is used as the cost. </P>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 12px">
  <%
	case else
%>
  No help available
  <%
	end select	
%>
</p>
<TABLE width=100% border=0 cellPadding=3 cellSpacing=0 bgColor=#cccccc>
  <TBODY>
    <TR>
      <TD><B>Other Shipping routines</B></TD>
    </TR>
  </TBODY>
</TABLE>
<p>The &quot;Other&quot; shipping calculation has been changed in <%=getlang("langcommonsoftwarename")%> 6.00, to allow greater flexibility with your shipping methods.</P>
<p>Now you can offer a shipping calculation, such as Fixed or Product AND an &quot;Other&quot; shipping method, such as Fedex or USPS.</P>
<p>If you wish to an &quot;other&quot; form of shipping in <%=getlang("langcommonsoftwarename")%> 6.00, simply add it in the second section on this page, called &quot; Set up Other Shipping&quot;.</P>
<P><%=getlang("langcommonsoftwarename")%><%=getlang("langcommonsoftwarename")%> supplies free <A 
href="http://www.vpasp.com/virtprog/vpaspotheraddons.htm">add-ons</A> for other shipping types that can be used in this &quot;Other&quot; section. The routines names that handle these special shipping types are defined in the shipmethods table field "shiproutine". Separate instructions come with these other shipping methods.</P>
<p>The others are available, as free add-ons, but do not form part of the official supported product. It is possible for example for UPS or FedEx to change their rules and we do not guarantee that VP-ASP will support these changes. Any or all of these extra add-ons may require that you register with the appropriate companies. Most of the real time interfaces require the Microsoft XML DLL to be installed. This is normally on most modern Windows servers but may not be on your server.</P>
<UL style="font-family: Arial, Helvetica, sans-serif; font-size: 12px">
  <LI>
    <p>UPS Real-time </P>
  <LI>
    <p>UPS by Database Lookup </P>
  <LI>
    <p>Australia Post real-time </P>
  <LI>
    <p>Canada Post real-time </P>
  <LI>
    <p>FedEx database lookup </P>
  <LI>
    <p>USPS Real-time lookup<O:P> </P>
  <LI>
    <p>Intershipper Real Time &nbsp; </P>
  </LI>
</UL>
<TABLE width=100% border=0 cellPadding=3 cellSpacing=0 bgColor=#cccccc>
  <TBODY>
    <TR>
      <TD><B>Shipping By Country</B></TD>
    </TR>
  </TBODY>
</TABLE>
<p>Most of the methods can also be set-up specific to a country. Countries that are not specifically listed have a special entry where the country is "other".</P>
<p>Set the following value in Shop Configuration values</P>
<p>xshippingbycountry=Yes<br />
  xincludecountries=Yes</P>
<p>For each specific country, create the appropriate records as described above but put the country abbreviation into the shipmethods record.&nbsp;</P>
<p>Create one set of records and put "other" into the country field so that those countries that do not have specific record will obtain their shipping rates from the "other" set of records.</P>
<% 
	GenerateDisplayBodyFooter
End Sub %>
