• Hello, on product data > shipping we cant’save this values after update the wp core to 5.8
    1_Country of Manufacture (DHL)
    and
    2_Harmonized Tariff Schedule (DHL)

    any suggestion?

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shadi Manna

    (@shadim)

    We were not able to replicate this issue.

    Can you disable all other plugins and confirm if this issue is still happening? Please also make sure WooCommerce is up to date.

    Thread Starter netkappa

    (@netkappa)

    seems germanized plugin block this values ,when deactivate we can save the Harmonized Tariff Schedule etc

    Regards

    I have the same problem. It’s really bad. Is there a fix for it?

    I made a workaround (really bad but it works).
    Add this code to your function.php and add a line for each product and it will forcibly set these values every time.

    <?php
    
    add_action("admin_footer", function() {
        foreach([
            //[product_id, tarif number, country of origin],
            [1000, "AAAAAAAAAAA", "DE"], // Produkt 1
            [1001, "AAAAAAAAAAA", "DE"], // Produkt 2
            [1002, "AAAAAAAAAAA", "DE"], // Produkt 3
            [1003, "AAAAAAAAAAA", "DE"], // Produkt 4
            [1004, "AAAAAAAAAAA", "DE"], // Produkt 5
            [1005, "AAAAAAAAAAA", "DE"], // Produkt 6
        ] as $produkt) {
            $produkt_id = $produkt[0];
            $zoll = $produkt[1];
            $land = $produkt[2];
            
            foreach(["_dhl_hs_code", "_hs_code"] as $feld) {
                update_post_meta( $produkt_id , $feld, $zoll);
            }
            foreach(["_dhl_manufacture_country", "_manufacture_country"] as $feld) {
                update_post_meta( $produkt_id , $feld, $land);
            }
        }
    });
    Plugin Author Shadi Manna

    (@shadim)

    Would you be able to reach out to the Germanized plugin developers and ask them about this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Harmonized Tariff Schedule (DHL)’ is closed to new replies.