Displaying Price Levels and Sale Prices

You can display multiple price levels for items on website pages. This enables you to display both the original and sale prices for items. When you update price levels in your account, the items in your site are automatically updated.

Sale prices and other price levels can be added to item pages using item/category templates. Use the <%=getCurrentAttribute('item','pricelevelx')%> tag to display item prices, where x is replaced with the ID number for the price level.

For example, because the default ID for the online price is 5, the tag attribute is pricelevel5. The IDs of alternate sales prices increase by one between the base price and the online price. For the price levels included in your account, the attributes are as follows:

Price Level

Attribute

Base Price

pricelevel1

Alternate Price 1

pricelevel2

Alternate Price 2

pricelevel3

Alternate Price 3

pricelevel4

Online Price

pricelevel5

If you use custom price levels in addition to the default levels, you can view their respective IDs at Setup > Accounting > Accounting Lists. Select Price Level in the Type filter at the bottom of the page.

Note:

Internal IDs only show in lists when you have the Show Internal IDs box checked at Home > Set Preferences.

Use the following code sample as a guide for creating an item/category template with both a sale price and an original price:

          <td>
   <h2><%=getCurrentAttribute('item','itemid')%>
      <%=getCurrentAttribute('item','stockstatusmessagehtml')%>
   </h2>
   <br><%=getCurrentAttribute('item','storedetaileddescription')%>
   <br><br>
   Was <s><%=getCurrentAttribute('item','pricelevel1')%></s>! 
   Now Only <%=getCurrentAttribute('item','pricelevel5')%>
   </h3>
   <br>
   <table><%=getCurrentAttribute('item','addtocarthtml')%>
   </table>
   <br>
   <%=getCurrentAttribute('item','storedisplayimagehtml')%>
</td> 

        

Related Topics

Customizing Site Themes
Item and Category Templates
Adding a Style Sheet to Your Site
Using Web Site Text Groups
Advanced Site Customization
Creating Attribute Tags for Standard Records

General Notices