• Resolved seo4444

    (@silvio4444)


    wp all export is attached to the inventory when exporting .000. How can I remove this?

    Example:
    The product has a stock level of 497. In the exprt file, however, there is a stock of 497.000.

    What can I do to get rid of the period and the zeros?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter seo4444

    (@silvio4444)

    I found a solution. I don’t know if it’s right. But it works.

    
    function wp_all_export_convert_stock($stock) {
    	$stock = str_replace(".000", " ", $stock);
    	$stock = str_replace("000", "", $stock);
        return $stock;
    }
    • This reply was modified 2 years, 12 months ago by seo4444.
    Plugin Author WP All Import

    (@wpallimport)

    Hey @silvio4444,

    Removing the “.000” via a custom PHP function in the export works, or you could just type “absint” or “intval” as the function to use on the field and it will also remove it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘export stock without .000’ is closed to new replies.