Plugin Author
alx359
(@alx359)
Hello @supervreni,
Sorry for the late reply.
Have just pushed the 1.7.3
update. Now you may hide easier any status swatches you may not want via CSS, with something like:
.oshwoo.swatch.st_aggregate {
display: none;
}
Other possible values:
st_pending
st_processing
st_onhold
st_completed
st_refunded
st_cancelled
st_failed
HTH.
Thank you for that information. 🙂
Only one short question.
Is it possible to place the total number of orders on the delivery note?
Plugin Author
alx359
(@alx359)
Not sure I understand your question. Care to elaborate? The Customer Notes History tab simply displays in a consolidated view all notes of all orders for a given customer. You may insert whatever information you want as a private note for a given order, and it shall get displayed in said tab as part of that history.
The plugin currently shows the number of orders of the respective customer.
Is it possible to include this number on the delivery note (packaging slip?)?
Plugin Author
alx359
(@alx359)
I’m not sure this is std. WooCommerce. Where is this delivery note (packaging slip) located?
I used the plugin “Germanized Pro”
There you can place “variables” on the Packaging slip. But I don’t know how can I place the number of all orders of the customer.
They gave me a snippet to place custom fields, but I don’t know what to put in place of “my-product_attribute” to show the number of orders.
Here’s the snippet for example:
add_filter( 'storeabill_document_item_product_data_shortcode_result', 'my_child_adjust_document_item_product_shortcode', 10, 4 );
function my_child_adjust_document_item_product_shortcode( $result, $atts, $document, $shortcodes ) {
if ( $atts['data'] !== 'my_product_attribute' ) {
return $result;
}
if ( $product = $shortcodes->get_document_item_product() ) {
if ( $product->is_callable( 'get_attribute' ) ) {
return $result;
}
$result = $product->get_attribute( $atts['data'] );
}
return $result;
}