chorse wrote:Thank you Eduardo, but that's not the problem.
Of course you may have some zero cost or free items, but the problem with nopCommerce is that it allows one to bypass the attributes costs and allows a customer to purchase an item that is priced by the attributes, for nothing or at a reduced price. This is a flaw in the program. The problem occurs because the price of the product variant in the category screen of nopCommerce does not take in the price of the product variant attributes into account, so one can add the product to the basket at a zero or reduced cost (product variant price, minus the attributes price) and then purchase the item without taking any of the attribute costs into account. If one is managing the inventory by attributes then it is likely that the cost will be managed by the attributes price, and not the product or product variant price. In this case we need to disable the add to cart button on the category screen, so the user has to go to the product details page, that shows the attributes and displays the proper product variant price with the attributes cost.
To Duplicate:
1. Create a category
2. Create a couple products and their respective product variants (PV) with 0 cost
3. Manage inventory by PV attributes.
4. Create and add the attributes and assign the cost to the PV attribute e.g. create $100 in attributes
5. Add the products to the Category
6. From the Web site choose Category
7. The PV will show up in the category screen at zero cost
8. Choose add to cart. The product will be added to cart at 0 price and allow the purchase of that item at 0 cost, even though if one goes to the product page the cost of the item will reflect the price of the item with the attributes.
Hi chorse:
Now I understand what you meant. Nevertheless I made some tests (v 1.9) and could not get the errror you describe, because when in a category listing you click Add to Cart to a product that has attributes it always takes you to the details page:
1) In nop demo store I checked in Desktop Comuters (http://demo.nopcommerce.com/category/50-desktops.aspx) and if you push add to cart in Build your Own Computer (which has attributes) it takes you detail page whereas it adds it to cart in the case of HP Pavilion Elite M9150F Desktop PC (which has no product attributes). I did the same with Adidas shoes and other products in Shirts category (http://demo.nopcommerce.com/category/44-shirts.aspx) with same results: it takes you to detail page when the product has attributes and adds to cart when it does not.
2) In a demo site in my servers which has the same catalog as nop demo store I got same results (
always was sent to details page) with Adidas shoes when:
2.1) tried to add to carte
2.2) set a price for the 2 colour attributes ($100 and 50) and tried to add any to cart
2.3) then besides the price increases in (2.2) and set the base variant price to $0 and then tried to add to cart