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
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
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
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
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
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
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