Amrinder0001 / bakesale

Automatically exported from code.google.com/p/bakesale
1 stars 0 forks source link

Shopping Cart Error with Shipping rules enforced #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up shipping rule based on number of products
2. Add products to basket

What is the expected output? What do you see instead?

Expected: Cart to add up shipping correctly
Actual: php errors and no shipping

What version of the product are you using? On what operating system?

Version 1.0.0.2 on Linux server with PHP5

Please provide any additional information below.

I actually fixed this myself, even though I'm not much of a PHP programmer,
it just turned out to be easy!
On line 75 of shipping_methods_controller.php the variables are named
wrong. They are $products_total instead of $total_products. Changing that
fixes the bug, see attached controller.

Original issue reported on code.google.com by philn...@gmail.com on 5 Dec 2007 at 12:25

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by putkonen...@gmail.com on 22 Sep 2009 at 12:14