hi
please, use this code in “MIsc Settings”add_filter('woe_get_order_product_value_width', function ($value, $order, $item, $product,$item_meta) { return (float)$value - 40; }, 10, 5);
more details https://docs.algolplus.com/algol_order_export/hooks-filters/
Hi thank you for the quick response. It working better that it did, however i would like slat_width to equal the: width – 40
add_filter('woe_get_order_product_value_slat_width', function ($value, $order, $item, $product,$item_meta) {
return (float)$value - 40;
}, 10, 5);
Please, try
return (float)$product->get_width() – 40;
Thank you, although i get an error.
The code you are trying to save produced a fatal error on line 2:syntax error, unexpected ‘–’ (T_STRING), expecting ‘;’
add_filter(‘woe_get_order_product_value_slat_width’, function ($value, $order, $item, $product,$item_meta) { return (float)$product->get_width() – 40; }, 10, 5);
forum replaced - with – Use
return (float)$product->get_width() - 40;