Volume Discount Display

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
krittleb
Commander (CMDR)
Commander (CMDR)
Posts: 111
Joined: Tue Jan 06, 2009 11:27 pm

Volume Discount Display

Post by krittleb » Thu Mar 26, 2009 10:18 am

We are wanting to use the line item quantity discounts with a percentage discount. However, we do not want it to display on the product page showing "10% off", but instead saying something like "5-15 items, $1.50/pc" where the actual price is extrapolated per item.

Another option would be to have the discounts apply, but not have the box actually appear on the page. We would then create a table with the info. that we would include with the product description.

However, we can not figure out how to make the volume discount box display with the actual price instead of the percentage or how to make the volume discount box not appear at all. I do not know which solution would be easier to implement. Changing the display of the box to show the price would save us time in entering products as it would automatically figure and display the discounts, where if we hide the display and make our own, then we have to create them for every product.

Any suggestions would be appreciated!

Kristi

sdlong02
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 95
Joined: Mon Jan 19, 2009 2:33 pm

Re: Volume Discount Display

Post by sdlong02 » Mon Mar 30, 2009 12:40 pm

I actually adopted this design from a client of mine, sounds like what you're looking for. I can figure out how I got this done again if so.


DELETED
Last edited by sdlong02 on Fri Jul 24, 2009 10:40 am, edited 1 time in total.

sdlong02
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 95
Joined: Mon Jan 19, 2009 2:33 pm

Re: Volume Discount Display

Post by sdlong02 » Mon Mar 30, 2009 12:50 pm

This is the category display of my volume discounts. Both are WIP


DELETED
Last edited by sdlong02 on Fri Jul 24, 2009 10:40 am, edited 1 time in total.

Robbie@FireFold
Commodore (COMO)
Commodore (COMO)
Posts: 433
Joined: Wed May 28, 2008 9:42 am
Location: Concord, NC
Contact:

Re: Volume Discount Display

Post by Robbie@FireFold » Mon Mar 30, 2009 2:17 pm

I actually need this too. Would you mind sharing the code to get the actual price of the item to display?
Robbie Hodge
General Manager
Robbie@FireFold.com
http://www.FireFold.com

sdlong02
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 95
Joined: Mon Jan 19, 2009 2:33 pm

Re: Volume Discount Display

Post by sdlong02 » Mon Apr 06, 2009 10:27 am

I'll try to get this code for you, lots of cookie-cutting code along with trial and error, I will need to track down again how I did this. Hopefully I'll have time to get it out here soon.

sdlong02
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 95
Joined: Mon Jan 19, 2009 2:33 pm

Re: Volume Discount Display

Post by sdlong02 » Thu Apr 16, 2009 2:37 pm

Code: Select all

/*VolumeDiscountCollection availableDiscounts = VolumeDiscountDataSource.LoadForProduct(product.ProductId);
VolumeDiscount testDiscount = availableDiscounts[0];
int DiscountCount = testDiscount.Count;
testDiscount.Levels.Count;

        VolumeDiscount discount = (VolumeDiscount)dataItem;

*/

                //OUTPUT Price for item
                itemTemplate1.Controls.Add(new LiteralControl("<td>"));
                itemTemplate1.Controls.Add(new LiteralControl(string.Format("{0:ulc}",  product.Price)));

                itemTemplate1.Controls.Add(new LiteralControl("</td>"));


VolumeDiscountCollection availableDiscounts = VolumeDiscountDataSource.GetAvailableDiscounts(product.ProductId);
VolumeDiscount testDiscount;


            if (availableDiscounts.Count > 0)
            {

                 testDiscount = availableDiscounts[availableDiscounts.Count-1];

                 foreach (VolumeDiscountLevel level in testDiscount.Levels)
                 {

                      itemTemplate1.Controls.Add(new LiteralControl("<td>"));
 
                      if (level.IsPercent) itemTemplate1.Controls.Add(new LiteralControl(string.Format("{0:ulc}",  product.Price * (1 - level.DiscountAmount/100))));
                      else itemTemplate1.Controls.Add(new LiteralControl(string.Format("{0:ulc} off", level.DiscountAmount)));

                      itemTemplate1.Controls.Add(new LiteralControl("</td>")); 
                 }


            }

            else
            {
                itemTemplate1.Controls.Add(new LiteralControl("<td>"));
                itemTemplate1.Controls.Add(new LiteralControl("&nbsp;"));
                itemTemplate1.Controls.Add(new LiteralControl("</td>")); 

                itemTemplate1.Controls.Add(new LiteralControl("<td>"));
                itemTemplate1.Controls.Add(new LiteralControl("&nbsp;"));
                itemTemplate1.Controls.Add(new LiteralControl("</td>")); 

                itemTemplate1.Controls.Add(new LiteralControl("<td>"));
                itemTemplate1.Controls.Add(new LiteralControl("&nbsp;"));
                itemTemplate1.Controls.Add(new LiteralControl("</td>")); 

                itemTemplate1.Controls.Add(new LiteralControl("<td>"));
                itemTemplate1.Controls.Add(new LiteralControl("&nbsp;"));
                itemTemplate1.Controls.Add(new LiteralControl("</td>")); 

            }
Sorry this took so long, this is from the cs file for my custom categorylist content page -- I'm not knowledgeable enough to know which part of the code is actually doing the conversion for the price so I just grabbed the whole chunk. Sorry again.

Chris Hadden
Commander (CMDR)
Commander (CMDR)
Posts: 182
Joined: Tue Jan 27, 2009 2:29 pm

Re: Volume Discount Display

Post by Chris Hadden » Fri Sep 17, 2010 1:36 pm

Do you have a web site where I can see how this modification looks?

Thanks

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Volume Discount Display

Post by plugables » Mon Sep 20, 2010 5:42 am

We once did something similar for a customer. The store is not fully launched by the customer yet but here is an example of discounts display http://www.intertexonline.com/Cinch-140 ... P2372.aspx
See the price breaks in Price section.

Thistle3408
Lieutenant (LT)
Lieutenant (LT)
Posts: 77
Joined: Mon Apr 19, 2010 4:52 pm

Re: Volume Discount Display

Post by Thistle3408 » Thu Sep 23, 2010 1:53 pm

You might want to look at our site and see if this is more in tune with the desired result.

Try this product
http://store.netgate.com/-P91C95.aspx

Chris Hadden
Commander (CMDR)
Commander (CMDR)
Posts: 182
Joined: Tue Jan 27, 2009 2:29 pm

Re: Volume Discount Display

Post by Chris Hadden » Fri Sep 24, 2010 11:51 am

Well both of those look like improvements, but what I want is that to show on the CATEGORY page. I use the deep item display with add to basket (CategoryGrid3.aspx) My items are inexpensive and I get a lot of people just order right off the category page, but they get confused because there are no price breaks shown there. Here is the page I want the breaks to show on

http://www.cameojewelrysupply.com/Alpha ... -C104.aspx

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Volume Discount Display

Post by plugables » Sat Sep 25, 2010 9:21 am

The same control that we are using for display on product page can be used on category page. It will only need a slight modification. i.e; setting the product id for the control in the repeater instead of getting the product id from context/query string.

Post Reply