Dynamicweb.eCommerce.Prices Namespace > PriceMatrix Class : fillMatrix Method |
'Declaration
Public Sub fillMatrix( _ ByVal productObj As Product _ )
public void fillMatrix( Product productObj )
class MyPage : System.Web.UI.Page { public string ProductPriceMatrix(Product objProduct) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); if (Base.HasAccess("eCom_Pricing", "") | Base.HasAccess("eCom_PricingExtended", "")) { Dynamicweb.eCommerce.Prices.PriceMatrix pm = new Dynamicweb.eCommerce.Prices.PriceMatrix(); pm.fillMatrix(objProduct); //################################### //PRICE MATRIX //################################### sb.Append("<table border=0 cellpadding=0 cellspacing=0 width='95' style='width;' id=MatrixSchema style='display:;'>"); sb.Append("<tr><td>"); sb.Append("<fieldset style='width:100%;margin:5px;'><legend class=gbTitle>" + Translate.Translate("Priser") + "</legend>"); sb.Append(pm.writeMatrix()); sb.Append("</fieldset><br><br>"); sb.Append("</td></tr>"); sb.Append("</table>"); sb.Append("<br></center>"); sb.Append("<input type=hidden name=SavePriceMatrix value=1>"); } return sb.ToString(); } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2