Forum damaged quotes in my message, use double quotes.
Thread Starter
zaoyao
(@zaoyao)
Could you please tell me how to combine the product tags with attributes, while excluding the attribute name ‘size’? I would like the size attribute to be in a separate column
Thread Starter
zaoyao
(@zaoyao)
https://prnt.sc/rs56KmaTUFkL
And how to make the size and quantity information it center.
Please take note , not the title is the information before the title(such asxs, s) that want center
I already send you code which center cells , look at https://wordpress.org/support/topic/mapping-local-pickup-details-to-excel-fields/page/2/#post-18046357
Just duplicate line for other columns
$objXls->getActiveSheet()->getStyle( "M1:M" . $formatter->last_row)->applyFromArray($style);
To add Size as column – open >Setup Fields>Product Order Items, click Add Field and select “Size” in the dropdown. You should use https://docs.algolplus.com/algol_order_export/hooks-filters/ to adjust result.
Please hire PHP programmer.
Thread Starter
zaoyao
(@zaoyao)
add_filter( 'woe_fetch_item_meta', function( $value, $meta, $item, $product ) {
// Check if the meta key is "size" and exclude it
if ( isset( $meta['meta_key'] ) && $meta['meta_key'] === 'size' ) {
return ''; // Return empty to ensure "size" is skipped
}
// Append other meta values to the product name
return $product->get_name() . " (" . $meta["meta_value"] . ")";
}, 10, 4 );
I have try to some adjust. However it is not fucntion. I think my code is wrong
However it currently is take the product name. May i know it is possible get the product tag
Actually I want become product tag(variation) such as product tag(red).
All the variation is able take except the size. My variation of size is name size.
Product tags – please read https://stackoverflow.com/questions/31904758/woocommerce-get-product-tags-in-array
please hire programmer, we spend a lot of time already