Can I alter the plug-in to Autocomplete NON-virtual products
-
Hi,
I need the opposite of the plu-in: I want some categories not to be autocompleted. The easy way seems to be to alter your plugin so it does autocomplete only NON-vertual products. Looking at you code this seems simple; Just change “virtual” into “non-vertual” here:
'virtual' => 'Paid virtual products'
And swap “true” and “false” here:
$_product = $order->get_product_from_item($item); if (!$_product->is_virtual()) { $virtual_order = false; break; } else { $virtual_order = true; }
Posible?
https://wordpress.org/plugins/woocommerce-autocomplete-order/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Can I alter the plug-in to Autocomplete NON-virtual products’ is closed to new replies.