• Hello,

    I have a problem with a pop-up window. Whenever I add 1 product to the cart, if I press F5, a pop-up window pops up that says “The page you’re looking for has used the information you’ve specified.” Going back to the page could lead to the repetition of some action. ”

    When I press accept to reload the page, it adds another product. How can I remove this alert?

    Thank you!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is a question for whatever plugin you are using for products.

    Thread Starter pregunta02

    (@pregunta02)

    Hello Joy

    I use the following code:

    add_filter( 'woocommerce_loop_add_to_cart_link', 'quantity_inputs_for_woocommerce_loop_add_to_cart_link', 10, 2 );
     
     
    function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) {
    if ( $product && $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) {
    $html = '<form action="' . esc_url( $product->add_to_cart_url() ) . '" class="cart" method="post" enctype="multipart/form-data">';
    $html .= woocommerce_quantity_input( array(), $product, false );
    $html .= '<button type="submit" class="button alt">' . esc_html( $product->add_to_cart_text() ) . '</button>';
    $html .= '</form>';
    }
    return $html;
    }

    I use woocommerce but I think the problem is in the code but I can not see it.

    Sorry, this forum is for the support of WordPress software. Looking for help with a specific theme or plugin? Head to the theme or plugin’s page and find the “View support forum” link to visit the theme or plugin’s individual forum.

    Thread Starter pregunta02

    (@pregunta02)

    This forum has a section that is for Woocommerce that is where I put the question 🙂

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

The topic ‘Pop-up window’ is closed to new replies.