zaoyao
Forum Replies Created
-
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.
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
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
After added my website will have this error
If want the other attribute combine with the product name?
How to do it
For exampleProduct A(Red)/ Product A(Design attribute)
- I follow your indtruction to add the code and become as below
add_filter( ‘woe_fetch_item_meta’, function($value, $meta, $item, $product ){
var_dump($value,$meta); die(“debug”);
return $meta->display_value;
},10,4);
The result as below
string(14) “Size: XXS / XS” array(4) { [“meta_key”]=> string(4) “Size” [“meta_value”]=> string(8) “XXS / XS” [“meta_id”]=> string(6) “740162” [“order_item_id”]=> string(5) “91717” } debug- My boss wants the product name along with the attribute (color) in one column, and the attribute size in a separate column for color.
https://prnt.sc/ROIxerA8M2B8
Could you please guide me on how to do this?
Hi we are able to make the quntity in the center. However it still unable remove the variable title(such as size and etc)
add_filter( ‘woe_fetch_item_meta’, function($value, $meta, $item, $product ){
return $meta->display_value;
},10,4);If we using this code all the variable information will become blank
Very sorry to bother you again. The issues mentioned above have been resolved. However, may I ask if it’s possible to remove the variation titles, such as size, color, etc.? Also, how can I center the quantity number?
Maybe you just provide me documentation related the meta feild and i find the meta feild from there
and meta feild or the full address is?
Sorry on it
One more question
I habve tired enter the get_billing_address but it appear error. The feild of the billing address1&2 is ?
I have added the code here: https://prnt.sc/OVyr1SUETVkn
What I want is for the
_dslpfw_pickup_location_name
field to display thefull_address_billing
information if it is empty. However, I’m not sure what the correct meta field forfull_address_billing
is, so for now, I’m usingbilling_address_1
as a placeholder for testing.I have added the
_dslpfw_pickup_location_name
to the meta field, but when I export the data, it doesn’t get replaced with the billing address if it’s empty.Anything wrong with me?
Let me try
- This reply was modified 1 month, 3 weeks ago by zaoyao.
Sorry i am not understand on this.
If i want like the condition below
if the _dslpfw_pickup_location_id is empty, it will display billing address. How to do?
Thanks this problem have been solved. May i your plugin is able do the conditional for example, if the customer have enter information A will map information A. If not will map information B
- I follow your indtruction to add the code and become as below