mdorchain's Profile

27
Points

Questions
3

Answers
10

  • Asked on November 20, 2016 in Shop as Customer.

    Hey Chris, you may want to take a look at this related thread.

    • 936 views
    • 6 answers
    • 0 votes
  • Asked on November 20, 2016 in Shop as Customer.

    The issue comes from the $order->calculate_totals() in the function cxsac_redirect_customer_on_order_processed( $order_id, $posted = null ) .
    When recalculating the totals and taxes, woocommerce doesn't take into account WC()->customer->is_vat_exempt().

    In fact recalculating the totals outside the cart/checkout page is risky because the vat_tax_exemption of the customer is never taken into account.
    The same thing happens when recalculating in the admin page.

    The only way for it to work is to use tax classes instead of tax exemption.

    Michael

    • 1325 views
    • 6 answers
    • 0 votes
  • Asked on November 19, 2016 in Shop as Customer.

    To reproduce the issue, I think you can hook on the init() and set the vat excemption $woocommerce->customer->set_is_vat_exempt( true ); then order as customer with a pay later.
    I'm pretty sure it's not related to this particular plugin, but any plugin which will manipulate the tax exemption.

    Michael

    • 1325 views
    • 6 answers
    • 0 votes
  • Asked on November 19, 2016 in Shop as Customer.

    Hi,

    Any news about this? It has been a month and the tax issue is still there 🙁

    I'm using the same setup and also notice the same issue when "pay later" is used. But I don't think this is a cookie issue.

    I traced the "woocommerce_before_calculate_totals" and "woocommerce_calculate_totals" hooks and  WC()->customer->is_vat_exempt() is returning true each time.
    This should be normally enough to remove the tax (https://docs.woocommerce.com/wc-apidocs/source-class-WC_Cart.html#1394)" but it doesn't happen with the "pay later".

    There is definitely something messing up the tax rates in the way the "pay later" is taking shortcut, but I can't tell what yet.

    I'm working on a workaround to force the recalculation of the tax rates, but having the taxes wrong is kind of a bummer don't you think ?

    Thank you

    Michael

    • 1325 views
    • 6 answers
    • 0 votes
  • Asked on September 28, 2016 in Shop as Customer.

    Thanks Stuart, this way we can update to the next version without having to worry 🙂

    • 1206 views
    • 5 answers
    • 0 votes
  • Asked on September 23, 2016 in Shop as Customer.

    This one is painful since it messes up other features and plugins.

    The fix is simple. The line 273 just needs to be replaced with this

     if (is_admin() && isset($screen) && 'settings_page_shop_as_customer_settings' == $screen->id) {
     

    Explanation: the global $screen is not always defined so it needs to be tested before retrieving the id.

     

    Michael

    • 1206 views
    • 5 answers
    • 0 votes
  • Asked on September 23, 2016 in Shop as Customer.

    With the new version 2 and the new hooks, there is not more issues.
    Thanks guys for this awesome new version!!

    • 1058 views
    • 1 answers
    • 0 votes
  • Asked on September 23, 2016 in Shop as Customer.

    Just a big thank you for the version 2.0 and the fixes on mobile !

    • 1096 views
    • 4 answers
    • 0 votes
  • Asked on September 5, 2016 in Shop as Customer.

    Hi Sean, any rough timeline for that ? Are we talking of a few weeks or months ?

    No pressure LOL I just need to know if I need to plan a workaround or not since my users won't access the backend.

    • 1096 views
    • 4 answers
    • 0 votes
  • Asked on September 5, 2016 in Shop as Customer.

    Hi,

    I simply hooked to the pre_user_query and added the filters needed.
    It works perfectly fine.

    I just hoped I could have got a reply earlier since it has been 4 days since I posted the request 🙁

    Tnx

    Michael

    • 770 views
    • 2 answers
    • 0 votes