Good morning, I have a serious problem in woocommerce, it is negatifying my stock or rather to decrease, any purchase made, for example:
I created a product with 20 in stock, and when closing the purchase automatically it goes to -1 and takes the product of inventory, it was for 19 ..
includes/shortcodes.php
CHANGE lines 138:
if ( WPCF7_USE_PIPE ) {
$pipes = new WPCF7_Pipes( $scanned_tag[‘raw_values’] );
$scanned_tag[‘values’] = $pipes->collect_befores();
$scanned_tag[‘pipes’] = $pipes;
$scanned_tag[‘labels’] = $pipes->collect_afters();
} else {
$scanned_tag[‘values’] = $scanned_tag[‘raw_values’];
$scanned_tag[‘labels’] = $scanned_tag[‘values’];
}
// $scanned_tag[‘labels’] = $scanned_tag[‘values’];
ps. within the file “contact-form-7/wp-contact-form-7.php” this right
if ( ! defined( ‘WPCF7_USE_PIPE’ ) )
define( ‘WPCF7_USE_PIPE’, true );