Support » Plugin: Skroutz.gr & Bestprice.gr XML Feed for Woocommerce » Can i add a custom field in xml?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mpbm23

    (@mpbm23)

    You can add a special field mpn2 on products and then on createsk.php file after

    $onfeed =$wpdb->get_results($sql);

    add

    $sql = $wpdb->prepare(  "SELECT *
    		FROM " . $wpdb->prefix . "postmeta
    		WHERE <code>post_id</code> =" . $prod->ID . " AND <code>meta_key</code> LIKE 'mpn2';",0);
     $mpn2=$wpdb->get_results($sql);

    and after

    $product->mpn = NULL;            $product->mpn->addCData($sku->meta_value);

    add

    $product->mpn2 = NULL;            $product->mpn2->addCData($mpn2->meta_value);

    Good evening
    I used WC Fields Factory plug in to create a custom field in my products general tab with the name mpn2
    i have followed the steps i see the tag <mpn2><![CDATA[ ]]></mpn2>
    in XML file but no data in!!!
    Any clue what is wrong?
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can i add a custom field in xml?’ is closed to new replies.