• Resolved albertramsbottom

    (@albertramsbottom)


    Hi

    How does one map the SKU for parents and variations to the custom label field in ebay
    Ebay states that one should use the custom label field for SKUs but when we add a new product to woocommerce and then use WP lister to publish to ebay this field is empty in ebay

    Cheers

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support WP Lab Support

    (@wp-lab-support)

    Hello albertramsbottom.

    I am happy to help you today.

    WP-Lister pulls the SKUs directly from the WC SKU fields (or COD field, depending on your WP install). So all you need to do is add your parent SKU to the “SKU” field in the “Inventory” tab of the “Product Data” section in the edit product page. Then add your SKUs to each child variation by clicking on the “Variations” tab and entering the SKU in the SKU field for each variation.

    Kind regards,
    John

    Thread Starter albertramsbottom

    (@albertramsbottom)

    Hi John

    I have done that for the parent as a test, when I revised the item and go to my listings in Seller hub, the listing is missing the SKU in the Custom Label field next to the item name

    cheers

    Plugin Support WP Lab Support

    (@wp-lab-support)

    Hello there.

    From my understanding, eBay does not display the parent SKU when listing variable listings. I checked some of my own variable listings and this is true. eBay ignores the parent SKU, but not the child SKUs so go ahead and provide a unique SKU for each child variation which should show on eBay and you will be all set.

    Kind regards,
    John

    Thread Starter albertramsbottom

    (@albertramsbottom)

    OK ill give it ago

    Cheers

    Thread Starter albertramsbottom

    (@albertramsbottom)

    Hi

    I have done that and yes the variation SKUs come through fine

    I think what I am saying is that I would expect the parent SKU to come through in to the Custom Label (SKU), field in the listing, because if I go to revise the listing that field is still empty and is useful for searching, ordering in ebay seller hub

    Cheers

    Plugin Support WP Lab Support

    (@wp-lab-support)

    Hello albertramsbottom.

    I had gone over this with the developer in the past and eBay ignores the parent SKU. eBay does not need or use any parent SKU. It only needs child variations, so what you explain is completely normal.

    Kind regards,
    John

    Thread Starter albertramsbottom

    (@albertramsbottom)

    Yeap but it could be an improvement

    As I said its useful in ebay for searching and sorting

    On the seller Hub I could immediately see the SKU if the parent SKU was added to the custom Label (SKU)

    I can do that by hand no worries
    Thanks

    Plugin Support WP Lab Support

    (@wp-lab-support)

    Hello albertramsbottom.

    Here’s a function that adds the product_parent_sku variation that should use the parent’s SKU if available:

    add_filter( 'wplister_process_template_html', 'add_custom_template_variables', 10, 2 );
    function add_custom_template_variables( $tpl_html, $item ) {
    
    $product_id = $item['parent_id'] ? $item['parent_id'] : $item['post_id']; // maybe use parent post_id
    
    $tpl_html   = str_replace( 'product_parent_sku', ProductWrapper::getSKU( $product_id ), $tpl_html );
        return $tpl_html;
    }

    Kind regards,
    John

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

The topic ‘SKU doesnt map to Custom label’ is closed to new replies.