each time I refresh adds 1 item to the cart

Asked

Viewed 58 times

1

I am designing a site with wordpress and I am with a problem. The site is based on the purchase of software - Premium , Free and for this I used a princing table.

In woocomerce I created 2 products and the id of the created products I put in the button of each table.

When I click on the buy button it adds in the cart only 1 quantity so far is fine ,except that every time I refresh the page it adds another amount I think the problem is in the url because it shows something like this? add-to-cart=77 . How can I resolve this issue ?

  • 2

    A good way to start is to put the referent code in your question.

  • Guilherme, this part "add-to-Cart=77" is a parameter for the backend to add the product (probably) with ID 77. Whenever you upload this page it will add a product. Does this page reload during the client stream or are you updating to apply CSS/Javascript, etc? To clarify the idea of this URL, imagine that this URL is from when someone clicks on the Buy/Add button on the cart in the block where the item has the ID 77. !

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.