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...