M
M
malcov2014-08-25 21:42:02
opencart
malcov, 2014-08-25 21:42:02

Problem with opencart options?

Hello. There was such a problem:
There is a button "add to cart" (on the manufacturer's page), and if you click it, we get a pop-up window with the text about the successful addition of the product to the cart. But if the product has some options, then when you click on the "add to cart" button, it simply goes to the product page. Although this is not written in the code, and the link looks like this

<a title="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" /></a>

Everything works in categories and on the main page. Console didn't show any errors.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
falsebyte, 2014-08-26
@falsebyte

In my opinion, everything is logical. If the product has options, then you need to select them before buying, right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question