Display different product prices in AspDotNetStorefront

Est. Reading Time: 3 minutes

Recently one of our AspDotNetStorefront clients asked me to come up with a way to modify the display of his products that vary by price.  One of the things I really like about AspDotNetStorefront is that there are often “hidden gems” or functionality that you might not use one day, but come up with a way to incorporate it later.  For this client, I recommended that he investigate either the product attribute features of a simple product or set up the products with separate variants.

Attribute Option

This is the easiest product setup and, in general, requires the least XML package modification/development, but may not be the ideal user experience, depending upon the type of product being sold.

  1. Log into ASPDNSF Admin and search for the product to modify
  2. Click on the product and then on the Main tab
    • Change “Color Option Prompt” to the appropriate label to indicate why this product has multiple prices (for example “Product Options”).
    • Change the XML package to product.simpleproduct.xml.config
    • Hit the “Update” button.
  3. Go to the Product Variant link, click on the default product variant displayed and then click on the Attributes tab
  4. Enter text like this in “Colors” field– “Product Option 1[-100.00],Product Option 2[-50.00],Product Option 3″.  In this example, product option 1 will be $100 cheaper and Product Option 2 will be $50 cheaper than product option 3.  Add as many product types and prices as needed; separate all product options by commas.
  5. Hit “Update”  and then view the product on the live site.  Selecting “Product Option 1″ from the drop down should  discount the item by $100 when added to the cart
  6. See http://manual.aspdotnetstorefront.com/p-967-varying-price-by-sizecolor.aspx for more info on this setup

Variant Option

Depending on the type of product, I think this is the best looking option for the customer, but sometimes requires modification of the XML package by a developer to display correctly.

  1. Log into ASPDNSF Admin and search for the product to modify
  2. On the Main tab
    • Change the XML package to product.variantsindropdown.xml.config
    • Save the product with the “Update” button
  3. Go to the Product Variant link and clone the default/existing variant using the “Clone” link.  Create as many clones as there will be product options for this product.
  4. Click on the first variant in the list.
  5. Change the variant name to “Product Option 1” (or other applicable label) and change the price field to the correct price for this product option and then save the variant.
  6. Click on each subsequent variant in the list and change the variant product name and price for that product option.
  7. Save the product and then view the product on the live site.  Each product variant will appear as a separate choice in the drop down box along with the applicable price for that product variant.

I hope that you find this information helpful!