I have an ebook item in osCommerce that includes product attributes. When I click the Add to Cart button from the index page it should go directly to the shopping_cart.php page. However, it only keeps redirecting the customer back to the product_info.php page.
Why is it doing that?
2
Answers
If the product has attributes osCommerce expects that you select one of them before adding the product to the cart. That’s why it is redirecting you to the product detail page.
try this code:
find if ($col === 0) {$new_prods_content .= ”;} (around line 29)
below add this code: