- To mark a WebStore item as not available for sale on the Web (that is, that the customer should call for item availability), perform the following steps: In NSc PAM, select Attributes, then Add New Attribute. Specify a new PAM attribute called NoWebSales, then select attribute type Checkbox (true/false).
-
Click OK. This attribute is displayed as a column in your PAM item listing. For each item that you do not wish to sell on the WebStore, set this attribute to TRUE.
-
In NSc Sync Configuration, under Advanced, select Field Mappings. To add a new field mapping, right-click Item, then select Add New Field, then Standard RMS field.
- For Field Name, specify product_nowebsale. For Field Source, specify
CASE WHEN ISNULL(NoWebSales,0) = 1 THEN 2 ELSE 0 END
- Click OK, then resynchronize your database. For affected items, the WebStore description is displayed similarly to the following:
{ns:getProductPrice} is used on the âProduct Page â Related Itemsâ and âProduct Panelâ templates
This ns function (undesirably) displays prices for items which have been marked as product_nowebsale
{ns:printProdPrice} which is used on the product page (buy panel template) does NOT display prices for items which have been marked as product_nowebsale
On the Product Listing template, the following two functions display prices for product_nowebsale :
{getProductPrice(product)}
{printProductDiscounts(product)}
On the Product Listing template, the following two variables display prices for product_nowebsale (this is unavoidable since they are variables):
{formatPrice(product[âclasspricelowâ])}
{formatPrice(product[âclasspricehighâ])}
Therefore if items are marked as âNo Web Saleâ Items; the pricing ( on the âProduct Page â Related Items Panelâ ** Listing Page, and âProduct Panelâ templates ) needs to be wrapped in an IF Statement i.e.
{if (product[âproduct_nowebsaleâ] eq 0)}
{ns:getProductPrice}
{endif}
** If âEnable the use of thumbnails for related itemsâ is selected in the WSM; the Related Items Panel is based on a static template as opposed to the âProduct Page â Related Itemsâ NitroScript (so Pricing CANNOT be wrapped in a IF Statement). To prevent âNo Web Saleâ Items showing, ALL Prices (.text-price) need to be hidden on the #relatedproducts panel using CSS or jQuery.