Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Amigo 243 posts 568 karma points
    Jun 05, 2013 @ 14:07
    Amigo
    0

    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?

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jun 05, 2013 @ 14:24
    Nickolaj Lundgreen
    1

    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.

  • Amigo 243 posts 568 karma points
    Jun 06, 2013 @ 13:14
    Amigo
    0

    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?

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jun 06, 2013 @ 14:49
    Nickolaj Lundgreen
    1

    I do:

    \umbraco\ucommerce\Configuration\Custom.config

    (remember to restart the app. after adding the new component)

  • Lars Horne-Mortensen 40 posts 184 karma points
    Jun 07, 2013 @ 15:23
    Lars Horne-Mortensen
    100

    Hi Amigo,

    You should register your custom shipment in the /ucommerce/Configuration/Custom.config file.

    Something like this:

    <component id="MyShippingId"
    service="UCommerce.Transactions.Shipping.IShippingMethodService, UCommerce"
    type="MyNamespace.MyClass, MyDll"/>

    Hope that helps,

    Lars

  • Amigo 243 posts 568 karma points
    Jul 10, 2013 @ 12:11
    Amigo
    0

    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?


  • Lars Horne-Mortensen 40 posts 184 karma points
    Jul 29, 2013 @ 15:13
    Lars Horne-Mortensen
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft