Page 1 of 1
Custom Shipping Costs
Posted: Thu Sep 24, 2009 10:44 am
by peashootermedia
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:
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.
Any idea's on how to fix this issue?
Re: Custom Shipping Costs
Posted: Fri Sep 25, 2009 4:28 am
by mazhar
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.
Re: Custom Shipping Costs
Posted: Mon Sep 28, 2009 9:14 am
by peashootermedia
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..
Re: Custom Shipping Costs
Posted: Mon Sep 28, 2009 9:48 am
by mazhar
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.
Re: Custom Shipping Costs
Posted: Mon Sep 28, 2009 11:04 am
by peashootermedia
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...
Re: Custom Shipping Costs
Posted: Mon Sep 28, 2009 2:59 pm
by peashootermedia
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.