Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ricardogrune

    (@ricardogrune)

    Hi Jose,

    I already fixed it with this:

    function update_product_meta_data() {
    global $wpdb;

    // Selecteer alle producten met een barcode en supplier_sku
    $query = "SELECT product_id, barcode, supplier_sku FROM wp_atum_product_data WHERE barcode IS NOT NULL OR supplier_sku IS NOT NULL";
    $products_with_meta = $wpdb->get_results($query);
    
    foreach ($products_with_meta as $product) {
        // Update of voeg barcode meta toe
        if (!empty($product->barcode)) {
            $current_barcode = get_post_meta($product->product_id, 'barcode', true);
            if ($current_barcode !== $product->barcode) {
                update_post_meta($product->product_id, 'barcode', $product->barcode);
            }
        }
    
        // Update of voeg supplier_sku meta toe
        if (!empty($product->supplier_sku)) {
            $current_sku = get_post_meta($product->product_id, 'supplier_sku', true);
            if ($current_sku !== $product->supplier_sku) {
                update_post_meta($product->product_id, 'supplier_sku', $product->supplier_sku);
            }
        }
    }

    }

    add_action(‘woocommerce_update_product’, ‘update_product_meta_data’);

    Thread Starter ricardogrune

    (@ricardogrune)

    Hi sorry for my late response. This issue was resolved by itself. But we have a strange new error.

    Some of the orders wont’ export and some order will export.
    This is one of the logs when we hover over the icon in the orders page:
    16/10 – Automatisch een andere vervoerder geselecteerd door API
    16/10 – Ge?xporteerd
    17/10 – TrackingID verzonden via API 3SOMZZ497134483
    23/12 – Shipment was not found
    23/12 – Shipment was deleted in the app. Export again
    23/12 – Fout bij exporteren

    When i go to the page of the order itself i can export this order.

    Thread Starter ricardogrune

    (@ricardogrune)

    Hi,

    What do you mean with what does that line of code contain? It is from your plugin.

    I have tried it before an update and after a and also tried with different versions i still had. But we cannot export the orders.

    Thread Starter ricardogrune

    (@ricardogrune)

    Hoi Bart,

    Waar kan ik een mail naar toe sturen?

    Groeten,

    Ricardo

    Thread Starter ricardogrune

    (@ricardogrune)

    Nope, but i enabled it in wp rocket and now it’s working!

    Thanks for your reply.

    Thread Starter ricardogrune

    (@ricardogrune)

    Thread Starter ricardogrune

    (@ricardogrune)

    Thanks for your answer! I will wait for the update.

    I have also a other question:

    I can’t see the featured images when i am logged out from wordpress:
    This is what i see when i am logged out:
    <img width="320" height="240" src="data:image/gif;base64,R0lGODdhAQABAPAAAP///wAAACwAAAAAAQABAEACAkQBADs=" data-lazy-src="https://enfusionlive.com/wp-content/uploads/2019/01/Laag-1.png" class="post-thumbnail wp-post-image" alt="" data-lazy-data-lazy-="">

    and this when i am logged in:
    <img width="320" height="240" src="https://enfusionlive.com/wp-content/uploads/2019/01/Laag-1.png" class="post-thumbnail wp-post-image" alt="">

    and this is the shortcode i use:

    [netsposts taxonomy=’linden-news’ thumbnail=’true’ hide_source=’true’ size=’300, 300′ include_link_title=’true’]

    Could you help me?

    Thanks again!

Viewing 7 replies - 1 through 7 (of 7 total)