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:
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.
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
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
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
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
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
Thanks Anders. I'll send you an update via email in a day or so. Regards, John P
is working on a reply...