Copied to clipboard

Flag this post as spam?

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


  • John Perryn 71 posts 182 karma points
    Apr 07, 2013 @ 07:54
    John Perryn
    0

    Minicart - add freight per item

    Hi

    I'm working with Tea Commerce version 1.4.4.4.

    We have a variety of products and serviceswith different freight costs (Package and Postage) per item purchased. The data is set up and working at the product level but I'm having difficulty understanding how to add the freight cost into the minicart. The work seems to be done here:

    <form action="/base/teacommerce/SubmitForm.aspx" method="post">

    This is opaque to me.

    See http://test.qfhs.org.au/shop/qfhs-catalogue/queensland-fhs-publications/cemeteries/qfhscd016/

    Thanks

    John P

  • Anders Burla 2560 posts 8256 karma points
    Apr 07, 2013 @ 11:38
    Anders Burla
    0

    Hi John

    The SubmitForm method is used for non javascript fallback - so this is not there place where things happen. If you need to have shipping costs pr item and you need to not show them in the order lines price but add the total up for all order lines and show it in the shipping price, then you need to do some custom C# code. You will need to use the event system to be notified for everytime an order line is added/removed. When that happens you need to recalculate your shipping costs based on each order line and set the order.ShippingFeeWithoutVat to the right amount. To have the price for shipping for each product you need to copy it from the Umbraco product to the Tea Commerce order line. This is done by adding the property alias of the shipping price field for you document type in the Tea Commerce admin area - Settings - General settings and then order lines property aliases.

    To learn more about the event system for Tea Commerce 1.x - see this link:
    http://rune.gronkjaer.dk/en-US/2011/02/21/tea-commerce-net-api-explained/
    http://rune.gronkjaer.dk/en-US/2010/11/26/how-to-use-the-tea-commerce-events/

    Kind regards
    Anders

  • John Perryn 71 posts 182 karma points
    Apr 08, 2013 @ 14:50
    John Perryn
    0

    Thanks Anders. We will also sell services such as membership via our shop so a fixed shipping cost per order is not an option.

    Now I have a problem because what you suggest using the event system is somewhat beyond my experience and the project is already very late.

    Can you see any other possible solutions?

    Regards

    John P

  • Anders Burla 2560 posts 8256 karma points
    Apr 09, 2013 @ 09:05
    Anders Burla
    0

    Hi John

    Tea Commerce has been made with the words simplicity and flexibility in mind. Because of that we support the most common cases out of the box and then if you need more advanced features you need to start "programming". In your case I think what is best is to send us an email and we can try and figure out together what to do. Write to: info at teacommerce.net

    Kind regards
    Anders

  • John Perryn 71 posts 182 karma points
    Apr 09, 2013 @ 16:43
    John Perryn
    0

    Thanks Anders. I'll send you an update via email in a day or so. Regards, John P

Please Sign in or register to post replies

Write your reply to:

Draft