Commit graph

944 commits

Author SHA1 Message Date
Colin Kuskie
227745d975 Fix getCollateral, which used to return direct copies instead of safe copies, and
add a test for that.
addToCart does not adjust inventory, that is handled by the cart.
Invert the sense of quantity in onAdjustQuantity.
2008-06-10 01:48:20 +00:00
Colin Kuskie
1fd425ac96 Convert WebGUI::Shop::Products over to be object oriented.
Update the tests and Content plugin for the Shop.
Add the Products screen to the Shop admin screen.
Add exception handling to www_import.
Add a status message to the manage products screen.
2008-06-09 21:52:59 +00:00
Colin Kuskie
112da861ca add missing collateral from previous commit, add more tests for import 2008-06-07 22:35:55 +00:00
Colin Kuskie
0316b74ecd add tests for upgrading existing products, with bug fixes 2008-06-07 22:16:47 +00:00
Colin Kuskie
090e4c7adf add more export products tests, along with several bug fixes 2008-06-06 23:11:38 +00:00
Colin Kuskie
288fd54b17 tests for exporting, and some bug fixes in exportProducts 2008-06-05 19:57:01 +00:00
Colin Kuskie
994da561a5 web interface for importing and exporting products. Additional tests for the import/export API 2008-06-05 04:10:48 +00:00
Colin Kuskie
9a9e94a0de replace the old, buggy label.t with the new, slow critic_labels.t. Add Perl::Critic and Test::Perl::Critic as optional requirements to sbin/testEnvironment.pl 2008-06-04 20:09:00 +00:00
Chris Nehren
9c77fdcce7 Add the inheritUrlFromParent property, which causes the asset to prepend its
parent's URL to its own URL. Boolean, default off, found in the meta tab.
2008-05-30 23:38:07 +00:00
Yung Han Khoe
075c02221f Added UserList wobject 2008-05-30 15:31:24 +00:00
Colin Kuskie
9e1cc24271 Since the topical view of the Help has gone away, the TOC labels
are no longer required in the i18n files.  Remove the test and
subroutine from Operation/Help.pm.
2008-05-30 07:22:26 +00:00
Colin Kuskie
844c39e321 update PayDriver.t with the latest definition and form elements 2008-05-30 07:18:05 +00:00
Colin Kuskie
70f657d042 account for another default paydriver not that itransact has been added 2008-05-30 07:14:39 +00:00
Colin Kuskie
8409f5dcd4 clean up old commerce macro tests and have the upgrade script remove them for the user 2008-05-30 07:07:20 +00:00
Colin Kuskie
a998e119d1 update the plan since tests were moved into Asset.t for getIsa 2008-05-30 07:04:32 +00:00
Colin Kuskie
1d4810f6b5 migrate some tests from errorHandler to log 2008-05-30 07:03:05 +00:00
Colin Kuskie
f41d53aa90 make the upgrade script remove SQLForm files, code, Help, i18n and test. Retire the SQLForm test in the repo 2008-05-30 06:59:56 +00:00
Colin Kuskie
3ad1668a21 Promote the getAllProducts to Asset.pm as getIsa. Move the tests
from Asset/Sku/Product.t into Asset/Asset.t, and add tests to check
that inheritance is respected.
2008-05-28 16:06:52 +00:00
Colin Kuskie
0a05d637d4 Build an iterator for getting all products as objects, one at a time.
Build tests for the iterator.
Begin working on the exporter (which will use the iterator).
2008-05-28 04:37:21 +00:00
Yung Han Khoe
f3b14a227c Added Database link access for SQL Macro 2008-05-27 15:27:52 +00:00
Colin Kuskie
e562a45b10 Fix two bugs with importing product data.
Begin to build code for adding and editing products.
2008-05-27 04:01:41 +00:00
Colin Kuskie
b03b3b340e Remove extra whitespace in the testing files.
Make importProducts check file headers.
Add testing collateral, and tests
2008-05-27 01:12:01 +00:00
Colin Kuskie
b283ebaf81 begin work on importing products 2008-05-27 00:32:25 +00:00
JT Smith
57c85fde5a changed the name of getCartBySession to newBySession
created the CartItemCount and MiniCart macros
added help for MinCart, Cart, Address Book, and Edit Address templates
2008-05-24 23:27:30 +00:00
Colin Kuskie
5640ea4079 Give the different kinds of labels (subroutine i18n vs object i18n) different textual labels
for better diagnostics.
2008-05-20 18:58:13 +00:00
Yung Han Khoe
bc88cb3183 Adding basic UserList tests 2008-05-19 19:51:58 +00:00
Colin Kuskie
affd08990a Convert variants over to the new collateral API.
Convert the upgrade script to the new API.
Fix a few bugs in the collateral API with "empty" collateral Ids
and add tests for it.
2008-05-18 23:44:43 +00:00
Colin Kuskie
d849aacc51 Add tests for handling adding new collateral.
Covert features to new collateral API.
2008-05-18 16:01:13 +00:00
Colin Kuskie
04412f96c4 handle the case when the JSON hash contains only the unique identifier 2008-05-16 05:40:20 +00:00
Colin Kuskie
06a38c61c3 JSON collateral rewrite, first part.
API is rewritten and tested.  Upgrade script builds JSON
for all commerce products with unique identifiers.
TBD: Rework Product asset and test it.
2008-05-16 05:08:58 +00:00
Diona Kidd
5656ee915c Adding test for SyndicatedContent.t that exposes feed bug when passing data to the template engine 2008-05-16 00:53:32 +00:00
Colin Kuskie
9c9da302f1 remove colons from END blocks, so they actually act like END blocks 2008-05-09 18:14:14 +00:00
Colin Kuskie
e39ae106fd add templates to the mix. Product macro template scan and update done 2008-05-08 03:20:42 +00:00
Colin Kuskie
4cf45c289c Update all Wobjects, and snippets from using the Product
Macro to using AssetProxy.  The loadProductAsset.pl script is
for testing the conversion.
2008-05-08 01:51:43 +00:00
Colin Kuskie
711d0f5fc1 update defaultValue in the group field of the PayDriver definition 2008-05-07 16:33:27 +00:00
Colin Kuskie
c930c73d67 Fix Hidden, Radio and Checkbox, which wouldn't allow
a value of zero to be set in them.  It was translated to
the empty string.
2008-05-05 22:20:16 +00:00
Colin Kuskie
d7c6507c8b convert feature collateral to JSON 2008-05-05 17:50:26 +00:00
Colin Kuskie
52d29d90e4 convert specification collateral to JSON 2008-05-05 17:06:52 +00:00
Colin Kuskie
e5615e386c convert related over to JSON collateral 2008-05-05 03:13:28 +00:00
Colin Kuskie
2215e55bcb Convert accessory collateral to JSON based accessory collateral.
Add a product with accessory collateral to loadProducts.pl to test the upgrade.
2008-05-04 17:15:02 +00:00
Colin Kuskie
4da1f8314f Convert accessories over to the new Product collateral methods.
Add a method to get the JSON collateral indexed, for easy access to indeces.
Add tests for the new getIndexedCollateralData method.
In the upgrade script, put variants in all versions of the Product.  Begin
work on converting the collateral tables over to JSON.
2008-05-04 16:06:31 +00:00
Colin Kuskie
9d2b810a05 conversion of Product from Wobjects to Skus with variants is done 2008-05-04 04:32:58 +00:00
Colin Kuskie
6ad6cd3e5e move* with tests 2008-05-03 21:25:19 +00:00
Colin Kuskie
9489383cfe deleteCollateral tests, and detab Sku/Product.pm 2008-05-03 19:24:30 +00:00
Colin Kuskie
ef12f5118f more product collateral tests 2008-05-03 19:18:01 +00:00
Colin Kuskie
0000db901e Product variant creation is held off until we can finalize
the variant code.
Began building JSON based variant code, and a test for
verifying how it works.  set, get and delete collateral
are implemented.  Still need to build moveUp and moveDown.
Lots of tests to be written.
2008-05-03 05:41:13 +00:00
JT Smith
01d9af6222 The concept of "realtime" workflow has been eliminated. Instead all workflows are now realtime (synchronous), and roll over to be asynchronous if they cannot complete succesfully and immediately. 2008-05-03 05:38:13 +00:00
JT Smith
44c74c2299 added some database cache tests while testing out a theory, the theory is busted, but at least we have some more tests 2008-05-02 20:03:33 +00:00
Colin Kuskie
bef82ef65f Handle null productNumbers in the Product variant translation.
Update the product loading script to add more products.
2008-05-01 22:38:14 +00:00
Doug Bell
aae6a32df4 added: Ability to enable / disable archiving per Collaboration System. fixed Mech tests again 2008-04-28 02:07:56 +00:00