Commit graph

5756 commits

Author SHA1 Message Date
Colin Kuskie
2bc6cd49a7 Remove an extra my from Shop::Cart.
Add the getTaxRates method to Tax, with tests.
Add some calculate code to Tax, with tests, which don't pass yet.
2008-03-05 00:22:40 +00:00
JT Smith
52d2c63271 added utility method 2008-03-04 22:31:16 +00:00
Colin Kuskie
12b72c9b59 More tests for addressBook.
Fixed bugs in delete and getAddresses.
2008-03-03 02:26:46 +00:00
Colin Kuskie
0774bf771c Add a few more tests, and some POD to make sure that
new is known to be different from create as an instanciator
versus a constructor.
2008-03-02 16:47:00 +00:00
Colin Kuskie
4b17be6e54 Fix some comment typos in t/Shop/AddressBook
Add tests for WebGUI::Shop::Address
Fix bugs in the upgrade script (missing city entry) and
the Address new method.
2008-03-02 16:36:47 +00:00
Colin Kuskie
3da2edb1eb WBGP align Address's update method.
Remove unused variables and add some POD to AddressBook.
2008-03-02 16:16:38 +00:00
Colin Kuskie
5946fd5476 add a input validation check and test for Tax->calculate 2008-03-01 21:22:53 +00:00
Colin Kuskie
9d377193d3 placeholder for calculate in Shop::Tax.pm 2008-03-01 04:54:21 +00:00
JT Smith
cebb684536 added address book management system, no ui 2008-02-29 22:17:02 +00:00
JT Smith
7e6cfad2be stupid typo that i should kick myself in the nutz for 2008-02-29 17:43:42 +00:00
Colin Kuskie
aab533623e Add a field to the InvalidParam exception.
Use it in Ship.pm for documenting bad requested classes, and test
its use.
2008-02-29 04:17:23 +00:00
Colin Kuskie
d780700013 Finalize getShippers, along with tests. 2008-02-29 04:03:28 +00:00
Colin Kuskie
1261c96349 add Tests for getShippers, and some code for the method too. 2008-02-29 00:36:39 +00:00
Colin Kuskie
df47d0a07c Add more POD to Pluggable.
Add more POD to FlatRate.pm, for the to be written calculate method.
Build create and new methods for Ship, convert existing code to throw exceptions.
Tests for Ship, that look suspiciously similar to ShipDriver.
2008-02-28 23:22:55 +00:00
Colin Kuskie
be2b76a7d0 add more POD docs about Asset constructors and instanciators 2008-02-28 22:48:00 +00:00
Colin Kuskie
ea500fd1b2 Conver the FlatRate shipping driver to use exceptions. 2008-02-28 17:00:34 +00:00
Colin Kuskie
bc05127105 convert over to use exceptions. A few tests still need to be written, they are written as todo tests 2008-02-28 06:00:13 +00:00
JT Smith
99f1fc5eb8 base cart UI is working 2008-02-28 02:15:03 +00:00
JT Smith
12d2ce6c16 some fixes 2008-02-28 01:04:14 +00:00
Colin Kuskie
c9661496fe begin conversion of ShipDriver to use exceptions, in code and in test 2008-02-28 00:24:31 +00:00
Colin Kuskie
a8598bc108 Finish testing all of shop tax's exceptions.
Convert a few exceptions to better types in import.
2008-02-27 23:40:08 +00:00
JT Smith
08d2233991 a little closer 2008-02-27 23:21:41 +00:00
JT Smith
3cb0ccd0e2 started adding cart UI 2008-02-27 22:47:33 +00:00
JT Smith
152e96f695 added commerce ui glue 2008-02-27 16:30:10 +00:00
JT Smith
4a73cadf64 created donation asset 2008-02-27 02:44:33 +00:00
Colin Kuskie
a61ab090ee convert Shop::Tax to use exceptions 2008-02-27 00:35:10 +00:00
JT Smith
57cd7b6473 updated to use exceptions rather than croak 2008-02-26 23:14:48 +00:00
JT Smith
5aafd17f5a converted to use exception handling 2008-02-26 23:08:45 +00:00
JT Smith
fc88668399 added InvalidParam, renamed WrongObjectType to InvalidObject 2008-02-26 23:00:54 +00:00
JT Smith
d3600e31d4 added WrongObjectType 2008-02-26 22:48:10 +00:00
Colin Kuskie
f2c0a672f4 Add the shippingDrivers entry to the config file.
Have the update script remove the old shipping plugin and add the new shipping driver entry to config files.
Tests for Ship.t.  getDrivers and some "new" code for Shop::Ship.
2008-02-26 22:45:06 +00:00
JT Smith
06e902c019 base exception system 2008-02-26 22:12:39 +00:00
JT Smith
b90a8437a7 fixed last problem. cart works !!!! 2008-02-26 18:40:58 +00:00
JT Smith
e3be583b20 very close to working 2008-02-26 18:37:53 +00:00
JT Smith
449c3c26e0 tests are getting closer to working 2008-02-26 16:52:21 +00:00
JT Smith
d207994e90 cart should be pretty much working at this point...now need to test and whatnot 2008-02-26 02:12:31 +00:00
JT Smith
fa52bf1aef oops, wrong name 2008-02-26 01:32:16 +00:00
JT Smith
d3f3448b44 getting a little closer to having a complete cart 2008-02-26 01:31:52 +00:00
Colin Kuskie
ae589b23e7 add stub for Ship 2008-02-26 00:26:35 +00:00
JT Smith
a4391994a4 cart done, moving on to cart item 2008-02-25 22:56:47 +00:00
Colin Kuskie
640554ea14 Finish out the FlatRate driver, with tests and i18n.
Fix bugs found in ShipDriver by building a driver.
2008-02-25 22:36:10 +00:00
Colin Kuskie
6d856d1b58 Make the private object constructor handle inheritance.
Fix a POD typo.
2008-02-25 22:04:40 +00:00
JT Smith
26d708a56b fixing some bugs 2008-02-25 21:13:11 +00:00
Colin Kuskie
920b36d728 force the overriding of the calculate class 2008-02-25 21:11:44 +00:00
Colin Kuskie
2b1409222c remove debugging code 2008-02-25 21:10:41 +00:00
JT Smith
032617a8ba finished sku base class 2008-02-25 20:27:21 +00:00
Colin Kuskie
1d8461aa02 Update the POD for get and getValue. 2008-02-25 19:14:46 +00:00
Colin Kuskie
fc060962e8 Interim checkin.
FlatRate needs i18n and more tests.
2008-02-25 05:51:43 +00:00
Colin Kuskie
c1e0471d51 Add getEditForm to the ShipDriver, and test it. 2008-02-25 00:06:24 +00:00
Colin Kuskie
4ce8cd1a07 getEditForm also needs to accept the name of the hash key where
the list of fields is, because it is different in different
places in WebGUI.
2008-02-25 00:05:41 +00:00