Support » Plugin: ATUM Inventory Management for WooCommerce » Variations with stock at parent level only

  • Resolved ben

    (@bendx)


    We wish to have one parent stock level for all our variations. It looks like ATUM does not support this but thought I’d confirm here. Is there something I missed?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Salva Machi

    (@salvamb)

    Hi ben,

    Yes, you can. Just uncheck the “Manage Stock” checkbox for all your variations and WooCommerce will use the variable stock for all of them. ATUM has nothing to do with this.

    What you can’t actually do is to manage the stock quantity for variable products within Stock Central. Here you only can change the variations’ properties.

    Best Regards,
    Salva.

    OK to clarify, I wanted to see the stock quantity of the parent on the Stock Central page. Currently, stock central page does not show the stock quantity of the parent nor it’s variations when I have WC set to manage at parent level only. Interestingly I CAN see quantity on hold of each variation though when I turn on ATUM control for the variations. (There seems to be no way to turn on ATUM control for the parent itself which is what led me to believe ATUM does not support parent level control of variations)

    I see a possible solution. Changing line 1134 of
    /home/fcm4wp/public_html/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php

    
    ...
    protected function column__stock( $item, $editable = TRUE ) {
    
    		$stock = self::EMPTY_COL;
    
    		$classes_title             = '';
    		$tooltip_warning           = '';
    		$wc_notify_no_stock_amount = get_option( 'woocommerce_notify_no_stock_amount' );
    
    		if ( $this->allow_calcs) {
    ...
    

    to

    
    ...
    protected function column__stock( $item, $editable = TRUE ) {
    
    		$stock = self::EMPTY_COL;
    
    		$classes_title             = '';
    		$tooltip_warning           = '';
    		$wc_notify_no_stock_amount = get_option( 'woocommerce_notify_no_stock_amount' );
    
    		{
    ...
    

    This change seems to allow all rows except for variations controlled by parent or products without WC controlled stock quantities to have a stock quantity field which is all that was missing for us.

    I can see how we want to test $this->allow_calcs for the other columns but why not skip this test for the stock column? Now we can view and edit the stock quantity in Stock Central for parent (and anything else) if it is set to be managed in wc.

    • This reply was modified 1 year, 4 months ago by ben.
    Plugin Author Stock Management Labs

    (@stockmanagementlabs)

    Hi Ben,

    I have replied to other user about a very similar case just a second ago:

    Variable total in ATUM Stock Central.

    We are working on a solution.

    Hope this helps.

    Pavel

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Variations with stock at parent level only’ is closed to new replies.