Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I can't seem to debug my custom OrderLineCalculator. I know the code runs, as I can log things to the Umbraco Log, but the debugger in Visual Studio doesn't hit at all.
This issue is also mentioned in this thread: https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/83601-why-arent-the-customorderlinecalculator-run-on-http-thread
This site is running TeaCommerce 3.2.1 and Umbraco 7.5.13.
This is the code for the OrderLineCalculator:
public class CustomOrderLineCalculator : OrderLineCalculator
public CustomOrderLineCalculator(IVatGroupService vatGroupService, IProductInformationExtractor productInformationExtractor)
: base(vatGroupService, productInformationExtractor)
public override Price CalculatePrice(OrderLine orderLine, Currency currency, Order order)
return base.CalculatePrice(orderLine, currency, order);
Have you built your custom calculator using the latest dll files? So your code is build using the same dll that runs on the webshop?
Yes, it is using the same Dlls (I copy them to a lib folder so they are easier to manage in source control).
At first I thought that it wasn't registered at all, but then I discovered that it actually logged things, but just didn't hit the breakpoints. At least I assume that means it is registered correctly.
I have another project with TeaCommerce 3.1.4 where everything is working perfectly. In this project, with TeaCommerce 3.2.1, however, the same basic code is not working...
I'm working on recreating the issue in a project using the starter kit at the moment.
I have managed to reproduce the issue with a clean install of Umbraco 7.5.13, TeaCommerce 3.2.1 with the latest starter kit.
You can download the project (VS 2017) here: https://1drv.ms/u/s!AkwgkpetCvCprbkMRg2UuS5uWrcfZA
The issue happens in both VS 2017 and 2015
Will have to try and test this my self. Give me some time :)
Thanks :) This is a rather mysterious issue, so I'll be very interested to hear if you discover a cause.
Please send email with contact info to [email protected], so we can send you Tea Commerce 3.2.2 and see if that fixes the bug. It should :)
Thanks. Version 3.2.2 does indeed fix the issue :)
Fixed in Tea Commerce 3.2.2
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted