Dynamicweb 8 Documentation
PriceMatrix Class
Members  Example 

Represents a matrix of prices.
Object Model
PriceMatrix ClassPriceCollection ClassPrice ClassProduct Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class PriceMatrix 
[SerializableAttribute()] 
public class PriceMatrix 
Example
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();
    }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Prices.PriceMatrix

Requirements

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

See Also

Reference

PriceMatrix Members
Dynamicweb.eCommerce.Prices Namespace

Send Feedback