Commit graph

90 commits

Author SHA1 Message Date
Colin Kuskie
b57f289706 add a thank you message to the FlatDiscount/Coupon 2008-06-12 16:01:36 +00:00
Colin Kuskie
bfd1f3ae07 add hasAddedToCart and thankYouMessage template variables 2008-06-11 02:09:24 +00:00
Colin Kuskie
d77fec01c0 add POD, change spacing 2008-06-10 03:37:21 +00:00
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
ad92f6b628 fix a bug in edit variant 2008-06-10 01:04:25 +00:00
Colin Kuskie
0003f725b4 tidy up a bit and add a price to the variant dropdown 2008-06-07 04:02:12 +00:00
Colin Kuskie
bff85b56d0 provide a template var that will tell the user when there are no available variants for sale. Out of stock 2008-06-06 21:16:52 +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
1b2a829346 fix a potential future syntax error 2008-05-28 04:57:37 +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
Martin Kamerbeek
dc30ecccbe Recurring payment stuff fixes, forgot ITransact.pm in last commit. 2008-05-26 21:31:48 +00:00
Colin Kuskie
72b57b1601 Inventory management for the Product. 2008-05-25 23:02:33 +00:00
JT Smith
86be08b3b2 added product import node for the product import system 2008-05-25 21:59:46 +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
e3061a1606 begin implementing inventory control. Continue to separate the variants loop and the list of available variants for sale. 2008-05-24 23:14:38 +00:00
Colin Kuskie
28252f59e0 variant info is always displayed 2008-05-24 22:50:27 +00:00
Colin Kuskie
007693c2bd only show the buy form if there are variants to sell 2008-05-24 22:30:12 +00:00
Colin Kuskie
3428c3947d Translate all Product variables to use underscores instead of dots.
Update i18n and Help and the Product Template.
Remove the Benefits Showcase, Left Column Collateral and Three Columns Product templates.
2008-05-24 22:15:15 +00:00
Colin Kuskie
5edb13924a fix a few variant collateral bugs in the Product 2008-05-24 17:28:24 +00:00
Martin Kamerbeek
a6bd5d0b99 Adding the subscription asset 2008-05-21 08:29:40 +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
d8f12c4c9f convert related assets over to the new collateral API 2008-05-18 22:16:23 +00:00
Colin Kuskie
8b0e557ab9 convert product accessories to use the new collateral API 2008-05-18 21:18:02 +00:00
Colin Kuskie
a175ddc228 convert specifications to new collateral API 2008-05-18 20:22:54 +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
4a82ecadf7 make benefits work with the new collateral API (unique keys) 2008-05-18 03:50:55 +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
Colin Kuskie
45ae63d122 remove out of date collateral comments and fix a POD typo 2008-05-12 22:27:51 +00:00
Colin Kuskie
a0ef1b5494 finalize template variable names for the variant buy form. Add help for template variables and i18n 2008-05-12 17:20:53 +00:00
Colin Kuskie
7dc385b362 override addToCart in the Product Sku for doing inventory control 2008-05-11 04:34:13 +00:00
Colin Kuskie
3ec94d50d8 begin adding inventory control overrides of parent class 2008-05-09 23:02:44 +00:00
Colin Kuskie
b273a0bbb5 fix i18n for buy button in the Product 2008-05-09 22:45:55 +00:00
Colin Kuskie
c7b9f998ff form elements for buying a variant of a product 2008-05-09 22:44:13 +00:00
Colin Kuskie
4043c10b09 more work for www_buy, and the add to cart UI 2008-05-09 04:41:53 +00:00
Colin Kuskie
670e1a1218 begin work on the buy method, to add variants to the cart 2008-05-08 23:34:00 +00:00
Colin Kuskie
993d1c8067 add more help about shortdesc length, and use the correct form option to set the length to 30 chars 2008-05-07 20:14:14 +00:00
Colin Kuskie
9fda9c9d01 customize some Sku methods for Product 2008-05-05 23:49:39 +00:00
Colin Kuskie
2f70315094 Merging in functioning variants.
Fixed bugs in getIndexedCollateralData.
Added variants to the view template.
Updated all Product templates to display variants and controls.
2008-05-05 23:04:14 +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
62e7b50ad1 update the SQL query for related Products to consider revisionDate 2008-05-05 15:48:26 +00:00
Colin Kuskie
06fac95540 collateral data does not need to be manually duplicated 2008-05-05 14:54:36 +00:00
Colin Kuskie
ec1910db58 more collateral conversion. Collateral data does not need to be removed from extra tables in purge method 2008-05-05 14:53:40 +00:00
Colin Kuskie
e5615e386c convert related over to JSON collateral 2008-05-05 03:13:28 +00:00
Colin Kuskie
3721e97f7a final accessory changes. UI tests pass as well 2008-05-04 23:26:21 +00:00
Colin Kuskie
0bbf20bd2b fix for POD whitespace 2008-05-04 23:08:39 +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