Open luzat opened 3 years ago
In WC_Shipcloud_Shipping::get_shipping_class_dimensions the following line fails to find the requested taxonomy:
WC_Shipcloud_Shipping::get_shipping_class_dimensions
$taxonomy = get_term_by( 'name', $shipping_class, 'product_shipping_class' );
The issue is, that $shipping_class is a slug, not the readable name. The line should be changed to:
$shipping_class
$taxonomy = get_term_by( 'slug', $shipping_class, 'product_shipping_class' );
Otherwise no shipping class dimensions will be read.
In
WC_Shipcloud_Shipping::get_shipping_class_dimensions
the following line fails to find the requested taxonomy:The issue is, that
$shipping_class
is a slug, not the readable name. The line should be changed to:Otherwise no shipping class dimensions will be read.