I am trying to build a custom theme and have noticed that for some reason, whenever I click the "Add to Cart" button when viewing a single product, I get the error:
Oddly enough, adding to cart from a category view works fine. Looking at the template for the category view, I have:site_url/index.php?route=checkout/cart/update 404 (Not Found)
Code: Select all
<a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><?php echo $button_cart; ?></a>
Compared to the default template, I see this javascript binding:
Code: Select all
url: 'index.php?route=checkout/cart/add',
Code: Select all
url: 'index.php?route=checkout/cart/update',
Thanks a lot!