Custom Shipping Costs

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
peashootermedia
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Wed Sep 23, 2009 11:08 am

Custom Shipping Costs

Post by peashootermedia » Thu Sep 24, 2009 10:44 am

Hello.

I am fairly new to AbelCommerce & Asp.Net so any help would be great.

We have a section in our Admin area where we can do Custom Orders. In this Custom Order, say we have a Phone Order, and the client think that the shipping Cost is too high, we want to be able to go in a change it. We have the ability to do this (on ShipmentEdit.aspx), as you can see in the image below:

Image

However our issue comes on the invoice. When we have a custom shipping cost it shows under OTHER rather than Shipping and Handling, as seen below.

Image

Any idea's on how to fix this issue?

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

Re: Custom Shipping Costs

Post by mazhar » Fri Sep 25, 2009 4:28 am

In 7.0.3 you can edit order and then you can add a new shipping charge by specifying item type as shipping from shipping or edit order item section. What is your application version? In my testing I added a new shipping item and its appearing in shipping section on invoice page.

peashootermedia
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Wed Sep 23, 2009 11:08 am

Re: Custom Shipping Costs

Post by peashootermedia » Mon Sep 28, 2009 9:14 am

mazhar wrote:In 7.0.3 you can edit order and then you can add a new shipping charge by specifying item type as shipping from shipping or edit order item section. What is your application version? In my testing I added a new shipping item and its appearing in shipping section on invoice page.
Our Application version is just 7.0. I don't think editing the order afterwards for us would really work, because you want the e-mail sent to the customer to be sent with the correct amount from the beginning.. and not changing it afterwards...

Any more idea's would be appreciated..

Thanks..

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

Re: Custom Shipping Costs

Post by mazhar » Mon Sep 28, 2009 9:48 am

I think that this custom shipping charge functionality incorporated by you and is custom? These custom charges are being rendered under other charges because these are added as other charges. In order to put them under shipping you need to add these charges as shipping item which won't work in this case because basket is being recalculate upon checkout and will remove any thing custom which is not applicable. I think you should better adjust your invoice page display so that it shows custom shipping charges in shipping section.

peashootermedia
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Wed Sep 23, 2009 11:08 am

Re: Custom Shipping Costs

Post by peashootermedia » Mon Sep 28, 2009 11:04 am

Yes, It is completely custom.

One thing I have noticed is that AbelCommerce inserts a SKU of 'Shipping' on all built-in shipping methods.

When I have my custom shipping method, it leaves the SKU blank.

Here is a snippet of my code:

Code: Select all

 <div class="shippingCharge">
                <div style="margin-left: 100px">
                    <asp:RegularExpressionValidator ID="ShippingPriceRegularExpressionValidator" runat="server"
                        ControlToValidate="ShipmentPriceTextBox" CssClass="validator" Display="Dynamic"
                        ErrorMessage="Enter a valid price (12.95)" ValidationExpression="\d{0,7}\.\d{2}"></asp:RegularExpressionValidator>
                </div>
                <label>
                    Shipping Charge :</label>
                <asp:TextBox ID="ShipmentPriceTextBox" Width="150px" runat="server"></asp:TextBox>
            </div>

Code: Select all

protected BasketItem GetCustomShippingChargeItem(BasketShipment shipment)
    {
        BasketItem shipping = new BasketItem();
        shipping.BasketShipmentId = shipment.BasketShipmentId;
        shipping.BasketId = this.basket.BasketId;
        shipping.OrderItemTypeId = (short)OrderItemType.Charge;
        shipping.Name = this.ShippingTypeDropDownList.SelectedValue;
        shipping.ShippableId = (byte)Shippable.No;
        shipping.Quantity = 1;
        shipping.TaxCodeId = 1;
        shipping.Price = this.ShippingPrice;
        return shipping;
    }
Any idea if there may be a way to apply a SKU to this - and if once an SKU is applied will AbelCommerce treat that and sort it into Shipping?

Thanks so much, I appreciate your help...

peashootermedia
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Wed Sep 23, 2009 11:08 am

Re: Custom Shipping Costs

Post by peashootermedia » Mon Sep 28, 2009 2:59 pm

mazhar wrote:I think that this custom shipping charge functionality incorporated by you and is custom? These custom charges are being rendered under other charges because these are added as other charges. In order to put them under shipping you need to add these charges as shipping item which won't work in this case because basket is being recalculate upon checkout and will remove any thing custom which is not applicable. I think you should better adjust your invoice page display so that it shows custom shipping charges in shipping section.
Thanks Mazhar! I have taken your suggestion! Appreciate it.

Post Reply