The other solution is to make a flat shipping cost structure, where an average shipping cost is based for all orders. This of course is only usefull if the products is fairly similar in size /weight.
The total weight is retreived from loop : totalWeight += orderline.Quantity * Convert.ToDecimal(orderline["Weight"]);
But How do i add the Weight of my products to orderline when user adds items to the cart? I tryed to do a "Weight" (number) on my product definition, but i guess thats not it?
shipment
Hey guys,
What is best practice to do shipment in ucommerse?
All products has a weight on them, and then do some calculation on that in the basket/checkout?
Hey Amigo
There are two different approaches to the issue with shipping cost.
The first solution is to follow this guide: http://www.publicvoid.dk/BuildingACustomShippingMethodService.aspx (there might be some minor changes since uCommerce 3) and make a dynamic shipping price calculator (this is quite hard to do, if its volume based).
The other solution is to make a flat shipping cost structure, where an average shipping cost is based for all orders. This of course is only usefull if the products is fairly similar in size /weight.
Nickolai, i have now build my custom shippment like in Sørens article. (from 2011)
But when registering my custom shippment with ucommerse, the article talks about douing this in web.config section called "ordersConfiguration".
But "ordersConfiguration" does not exist in web.config....
Do you know how to do it in the newer version of UC?
I do:
\umbraco\ucommerce\Configuration\Custom.config
(remember to restart the app. after adding the new component)
Hi Amigo,
You should register your custom shipment in the /ucommerce/Configuration/Custom.config file.
Something like this:
Hope that helps,
Lars
In the exampl on: http://www.publicvoid.dk/BuildingACustomShippingMethodService.aspx
The total weight is retreived from loop : totalWeight += orderline.Quantity * Convert.ToDecimal(orderline["Weight"]);
But How do i add the Weight of my products to orderline when user adds items to the cart?
I tryed to do a "Weight" (number) on my product definition, but i guess thats not it?
Hi Amigo,
You can use the Dynamic Order Properties functionality, for adding custom information to your orderlines.
Take a look at this article for an explanation on how to use it: http://www.publicvoid.dk/DynamicOrderPropertiesAddingCustomInformationToBasketsOrdersAndOrderLines.aspx
Hope it helps,
Lars
is working on a reply...