• Resolved asystentwsieci

    (@asystentwsieci)


    Hi,

    First thanks for this plugin.

    …but after last update I have a problem with Split Order Module.

    the product is taken from the stock twice for parent order (first time) and for suborder (second time)

    Please help ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @asystentwsieci, thanks for reporting this issue.

    We will soon add a fix in our GitHub repository and will add the same in our next update.

    I will keep you posted.

    @asystentwsieci sorry for this glitch. Anyways you can add the follows patch in your active theme’s functions.php to overcome the issue –

    function woocommerce_can_reduce_order_stock( $flag, $order ){
    $is_vendor_order = ($order) ? wcmp_get_order($order->get_id()) : false;
    return $order instanceof WC_Order && wp_get_post_parent_id( $order->get_id() ) && $is_vendor_order ? false : $flag;
    }
    add_filter( 'woocommerce_can_reduce_order_stock', 'woocommerce_can_reduce_order_stock', 99, 2 );

    Hi, we have added the fix, in our GitHub repository. So, after downloading the plugin from here – https://github.com/dualcube/dc-woocommerce-multi-vendor/archive/master.zip, follow these steps :

    – Delete the installed WC Marketplace via wp-admin >> plugin
    – Unzip the GitHub plugin
    – Rename the folder as “dc-woocommerce-multi-vendor” and remove the master tag. Now, zip this folder again.
    – Install this plugin on your site.

    Let us know if you have any further query.

    Thread Starter asystentwsieci

    (@asystentwsieci)

    Hi,

    Thanks for response. Stock now is OK but I have next issue.

    Customer receiving two emails from shop.
    1. For parent order – it’s OK
    2. For suborder – and here fee for shipping is not calculated

    regards

    Thread Starter asystentwsieci

    (@asystentwsieci)

    It’s bigger problem with your plugin. Everything it making twice even if there is one vendor in order.

    emails to customers
    invoice pdf

    Idea with suborder its OK but if vendor canceled order I don’t see it on administrator panel.

    Hi @asystentwsieci, Actually, when a sub-order is creating for a parenting order, the customer will be notified. All the order email of the customer is sent by WooCommerce.

    If you want we can share you a code to stop all the suborder mails. But, what if a vendor changes the order status, then for that scenarios, emails (for sub orders) will be stopped too.

    Do, you want the customer to receive only the parent order’s email?

    Thread Starter asystentwsieci

    (@asystentwsieci)

    Hi,

    It’s no good that customer who bought 1 x product receive emails confirmation for two orders (#1 – parent order and #2 suborder)

    order #1 is with shipping cost
    order #2 is without shipping cost

    It is looking like customer bought 2 x products

    regards

    We understand your part @asystentwsieci. However, in order to stop the first suborder email, it will also remove all the suborder emails (the emails are sent when the status are changed).

    Now, if want, the parent order email can be stopped. This way customer will only see the split order emails.

    Alternatively, you can also stop all the sub-order emails. Hence, the customer will only see the parent order related email.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Stock problem after update – Split Order Module’ is closed to new replies.