• Resolved marpessa1

    (@marpessa1)


    Hello, I’ve added your plugin and entered the correct information, however I suspect it’s not working. The website is tea-excellence.com.

    I’m using WP Product Feed Manager plugin (using SKUs as IDs) and I have the simple remarketing code implemented in the footer. Can you please help me out?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author alekv

    (@alekv)

    Hi @marpessa1

    We don’t support SKUs yet.

    Regards
    Aleks

    Plugin Author alekv

    (@alekv)

    .

    Hi Aleks,

    You marked this case as resolved a little while ago. Could you explain how to use the SKU field from the products in woocommerce – and not the post id?

    best regards,
    Lars

    For future viewers I fixed this by changing line 305 in wgdr.php

    from
    ecomm_prodid: ' . json_encode( $this->mc_prefix . get_the_ID() ) . ',

    to
    ecomm_prodid: ' . json_encode( $this->mc_prefix . $product->get_sku() ) . ',

    and line 414 from
    array_push( $cartprods_items, $this->mc_prefix . $entry['product_id'] );

    to
    array_push( $cartprods_items, $this->mc_prefix . wc_get_product( $entry['product_id'])->get_sku());

    • This reply was modified 7 years, 9 months ago by larsbuur.
    • This reply was modified 7 years, 9 months ago by larsbuur.
    • This reply was modified 7 years, 9 months ago by larsbuur.

    One more addition. See line 424 here -> https://gist.github.com/LarsBuur/016a336ad25ba3a51b2d648c86ef483c

    This link contains the full file using SKU′s and not wordpress post id.

    Plugin Author alekv

    (@alekv)

    The plugin has been updated. It now supports the SKU.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Code not working?’ is closed to new replies.