• Hi when i click on a add to cart button on a product its throwing up an error on the product page, but not when i click the thumbnail?

    please could you advise

    The page I need help with: [log in to see the link]

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

    (@pycen)

    Hi theres 2 bugs in the product.php file the error messages shown if you click the product via the add to cart button can be stopped if you break the code and stop it from showing the error “Cannot calculate the correct price!”,

    but theres another bug with the checkout if youve got more than 1 product with required fields, theres an error ‘Product has incorrect parameters!

    • This reply was modified 3 years, 2 months ago by Charlie.
    Thread Starter Charlie

    (@pycen)

    the buggy bit is

    {
    wp_send_json(array(
    ‘result’ => ‘failure’,
    ‘messages’ => ‘

    ‘ . __(‘Product has incorrect parameters! Missing field ‘, ‘wc-kalkulator’) . ‘[‘ . $field->data(“title”) . ‘] in product #’ . absint($product_id) . ”
    ));

    delete it, it works

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

The topic ‘Add to cart button throwing error’ is closed to new replies.