Volume Discount - > Free Shipping

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
alkasber
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 36
Joined: Thu May 15, 2008 2:50 pm
Location: Brazil

Volume Discount - > Free Shipping

Post by alkasber » Sat Nov 15, 2008 11:48 am

Hello,

Is there a way in volume discount set something like: "When you buy more than US$1000,00 you have FREE SHIPPING" A FREE SHIPPING checkbox or something...

I know it needs customization, but can someone point us where to start?

Thanks

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Volume Discount - > Free Shipping

Post by mazhar » Mon Nov 17, 2008 4:36 am

One quick way could be to first create one free shipping method along with the other non free ones. Then upon the checkout process where multiple methods are shown for the shipment you can hide/show the free shipment method depending upon the basket total by giving the user ability to select free shipping. For this edit the ConLib/OnePageCheckout.ascx.cs file and locate the following line of code in it.

Code: Select all

localQuotes.Add(new LocalShipRateQuote(quote.ShipMethodId, methodName, formattedRate));
and make it look like

Code: Select all

if (methodName == "Free Shipping")
                        {
                            if(Token.Instance.User.Basket.Items.TotalPrice() > 1000)
                                localQuotes.Add(new LocalShipRateQuote(quote.ShipMethodId, methodName, formattedRate));
                        }
                        else
                            localQuotes.Add(new LocalShipRateQuote(quote.ShipMethodId, methodName, formattedRate));

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Volume Discount - > Free Shipping

Post by William_firefold » Tue Nov 18, 2008 7:56 am

Is there any way to change something so that there is another boolean on certain items for free shipping.
Obviously we would have to write a bunch of rules on checkout for when items w/ free ship are mixed with regular items, but can it be done without changing the core source?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Volume Discount - > Free Shipping

Post by mazhar » Tue Nov 18, 2008 8:59 am

Code: Select all

Is there any way to change something so that there is another boolean on certain items for free shipping. Obviously we would have to write a bunch of rules on checkout for when items w/ free ship are mixed with regular items, but can it be done without changing the core source?
One way to accomplish this without any customization is that first create another warehouse let's say it FreeProductsWarehouse. Now create a new custom shippment method with name Free Shippment and mark it only available for the FreeProductsWarehouse warehouse. Now provide FreeProductsWarehouse as the warehouse for those products which you want to have free shipments. During checkout AbleCommerce will automatically create two shipments one free and other the paid one for respective shippable items. :wink:

Post Reply