Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter bebewp

    (@bebewp)

    Vielen Dank für das Feedback.
    Mir ist jetzt nicht ganz klar, inwiefern das Problem mit internationalen Labels zusammenhängt.
    Die Einstellungen für DHL sind m.E. korrekt:
    – Standard Service (national) : DHL Paket
    – Standard Service (Int.) : DHL Paket Connect

    Wir arbeiten aktuell auch noch mit Version 3.4.6 und würden das Problem gerne unter dieser Version beheben, es sei denn, dass es sich um einen Bug dieser Version handelt.

    Grüße

    Thread Starter bebewp

    (@bebewp)

    Guten Abend,

    nach einer jüngsten Bestellung haben wir folgenden Eintrag im Log (wc-gzd-shipments):

    2021-05-14T19:56:39+00:00 INFO Error while automatically creating label for 167: Array
    (
        [0] => Invalid XML: cvc-length-valid: Wert '0104' mit Länge = '4' ist nicht Facet-gültig in Bezug auf die Länge '14' für Typ '#AnonType_billingNumberAbstractShipmentType'.
    )

    LG
    Björn

    Thread Starter bebewp

    (@bebewp)

    Die Bestellung wurde über einen Checkout durch eine Kundin erzeugt.
    Das Debug-Log haben wir in unserem Live-System nicht aktiviert. Das haben wir nun einmal aktiviert und auf logging gestellt.

    Thread Starter bebewp

    (@bebewp)

    Danke für den Hinweis – genau das hatten wir aber auch geprüft. Die Sendung hat ebenfalls den Status “In Bearbeitung”.

    Thread Starter bebewp

    (@bebewp)

    Jip, alles geprüft. Die Einstellungen sind korrekt und wurden auch seit Wochen nicht verändert.
    Als Status ist “In Bearbeitung” eingestellt und eben diesen Status hat die jüngste Bestellung von vor einer Stunde auch nach der Bezahlung via Kreditkarte erhalten.
    Ebenso bei den Versandmethoden alles überprüft.

    Wir sind jetzt aktuell noch auf Version 3.4.6. Habt ihr mit 3.4.7 getestet?

    LG

    Thread Starter bebewp

    (@bebewp)

    Wow, was für eine Reaktionsschnelligkeit. Vielen Dank für die prompte Mühe.
    Ja, das manuelle Erzeugen eines Labels funktioniert einwandfrei.
    Es handelt sich dabei um gewöhnliche, nationale Sendungen via DHL.

    Thread Starter bebewp

    (@bebewp)

    Hey, super gut und vielen Dank für die schnelle Rückkopplung.
    Das Problem taucht ohne eine Änderung an den bestehenden Einstellungen unvermittelt seit dem Update auf. Die Einstellungen auf Stage- und Live-Umgebung sind absolut identisch und alle angegebenen Daten sind besteuerbar. Wie in obigem Beispiel ersichtlich ist diese Information so auch in dem Fee-Object hinterlegt.

    Bei einem kurzen Blick in:
    wp-content\plugins\woocommerce-germanized\includes\class-wc-gzd-checkout.php

    Fallen mir die Zeilen 665ff. auf:

    $fee->total    = wc_format_decimal( $fee->amount + $fee->tax, '' );
    $fee->amount   = $fee->total;

    Das erscheint mir nicht richtig.

    Beste Grüße
    Björn

    Thread Starter bebewp

    (@bebewp)

    Hey guys,

    sorry to bother again.
    After latest update we encounter a problem with the get_fees() method on an order object.
    Since being on version 3.4.6 the returned item fee objects array contains for instance:

    [tax_status] => taxable
    [amount] => 1.34
    [total] => 1.34
    [total_tax] => 0.26

    On stage system with version 3.3.7 installed the fee objects array contains:

    [tax_status] => taxable
    [amount] => 1.6
    [total] => 1.38
    [total_tax] => 0.22

    Regards
    Björn

    Thread Starter bebewp

    (@bebewp)

    Hey guys, came up with some debugging in file woocommerce-germanized/includes/class-wc-gzd-checkout.php . I guess the problem is around line 688 – 748 …

    When having multiple fees in cart the variable $new_fees accumulates wrongly I guess. Just a thought.

    Regards,
    Björn

    Thread Starter bebewp

    (@bebewp)

    As we did some more testing we figured out that multiple fees on a single order are calculated wrongly.

    The tax of preceding fee is subtracted from the subsequent fee.

    We tested with different plugins that offer the possibility to add product fees.

    If Germanized has been deactivated the calculation of multiple fees in admin view of orders and order confirmation mail are correct again.

    Maybe you can have a look at the calculation of fees?

    Regards,
    Björn

    Thread Starter bebewp

    (@bebewp)

    Okay, I might have a suspicion on that.

    We use Bolder Fees as a plugin to add “Pfand” to specific products.

    When ordering a product without “Pfand” the fee for “Wunschtag” is saved right away to the order.

    But when a product with “Pfand” as a fee (1.60 incl. tax -> 1.38 without tax) is ordered in conjunction with a fee for “Wunschtag” the fee for Wunschtag respects the vat of “Pfand” somehow and reduces the fee.

    Is that possible? Is there any fix if so?

    Regards,
    Björn

    Thread Starter bebewp

    (@bebewp)

    Hi again and sorry to point to another problem that we encounter.

    In checkout everything is fine (we defined a fee of 1.20 Euro)
    but when the order is submitted the fee is reduced to 0.98 Euro and is saved that way in the order.

    Do you have any ideas why that ist?

    Regards,
    Björn

    Thread Starter bebewp

    (@bebewp)

    Hi,

    you pointed to the right direction. Thanks for the advice.
    We had to activate the checkbox for the fees to be calculated and enforced.

    That wasn’t obvious to me – sorry that we had to bother about that.

    Regards,
    Björn

    Thread Starter bebewp

    (@bebewp)

    You nailed it! Should have been obvious but I didn’t see it… Just converted it to an order object and passed that to the function.
    Thank you very much.

    • This reply was modified 5 years, 5 months ago by bebewp.
    Thread Starter bebewp

    (@bebewp)

    Hey Ewout, thanks for quick reply. When calling with get_id() it produces an error on execution of scheduled task:

    Fatal error: Uncaught Error: Call to undefined method WP_Post::get_id()

    I think the problem is becaue of the namespace I guess… But I am not aware of how to solve it…

    Thank you for your help nevertheless.

    Regards,
    Björn

    • This reply was modified 5 years, 5 months ago by bebewp.
Viewing 15 replies - 1 through 15 (of 15 total)