• Resolved thermosmart

    (@thermosmart)


    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)
  • Plugin Author Mirko Grewing

    (@rashef)

    I am afraid that’s not that simple. The plugin is looking for open orders containing only virtual product. When a PAID status is received by the gateway, these orders are completed.

Viewing 1 replies (of 1 total)
  • The topic ‘Can I alter the plug-in to Autocomplete NON-virtual products’ is closed to new replies.