Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter GabrielQueiroz

    (@gabrielqueiroz)

    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 ..

    Thread Starter GabrielQueiroz

    (@gabrielqueiroz)

    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’];

    Thread Starter GabrielQueiroz

    (@gabrielqueiroz)

    ps. within the file “contact-form-7/wp-contact-form-7.php” this right

    if ( ! defined( ‘WPCF7_USE_PIPE’ ) )
    define( ‘WPCF7_USE_PIPE’, true );

Viewing 3 replies - 1 through 3 (of 3 total)