Graham Knop
24da723629
updating copyright year
2009-02-20 23:47:30 +00:00
Colin Kuskie
e961bb6f26
forward port Product JSON collateral wide character fix
2008-12-01 19:29:45 +00:00
JT Smith
ee84cc7611
Deprecated WebGUI::Storage::Image. WebGUI::Storage can now do everything
...
WebGUI::Storage::Image can do.
2008-11-26 16:06:18 +00:00
Graham Knop
eca7ffbe9d
added variant id template variable to product variant loop
2008-09-18 19:51:19 +00:00
Chris Nehren
36eb8db8fc
add ability to show metadata values in head blocks.
2008-08-21 18:51:16 +00:00
Colin Kuskie
311ee8db1c
remove debugging code from Product.t
2008-07-31 03:22:58 +00:00
Colin Kuskie
05f85c5db3
Fix the configured title that is displayed when an asset is added
...
to the cart.
2008-07-31 02:41:40 +00:00
Colin Kuskie
448f1ffdf5
Fix per item shipping in Products.
2008-07-31 02:37:52 +00:00
Kaleb Murphy
6e97455afb
Product.pm no longer caches if a cart object has been created for this session.
2008-07-18 16:11:21 +00:00
Colin Kuskie
3e2d5c6adf
Add a continue shopping url to the Donation, Product, FlatDiscount and Subscription
...
Sku's. Update all the templates to display this URL. The new url takes the
user back to the view method with no extra variables set (like hasAddedToCart).
2008-07-16 01:05:06 +00:00
Colin Kuskie
6af150aa5d
document the overridden duplicate method in Sku/Product.pm
2008-07-14 19:19:44 +00:00
JT Smith
cc0105a9a4
move product import to shelf
2008-07-12 21:40:27 +00:00
Colin Kuskie
91317dfdd7
Fix potential JSON/UTF8 encoding issues in Asset/Sku/Product.pm
2008-07-08 21:23:45 +00:00
Colin Kuskie
14724cbbef
Add tests to check how getThumbnailUrl is supposed to work in the Product.
...
Then fix the bugs I added to it yesterday.
2008-06-20 22:05:47 +00:00
Graham Knop
8f9568c887
fixed: storage locations for some assets in packages not imported correctly
2008-06-20 08:57:20 +00:00
Colin Kuskie
68db4f8e46
Fix getThumbnailUrl in the Product, which was called by the Shelf directly causing failures.
...
Fix getPrice in the Product, which returned undef until a variant was applied to it.
These two fixes fix the Shelf.
2008-06-19 23:12:04 +00:00
Colin Kuskie
085f521225
Fix a typo with inStock vs in_stock template variables for the Product. It should be in_stock.
...
Add a new template variable, canEdit.
Change the default template to use canEdit to display the list of variants, so they aren't showed
twice.
2008-06-19 19:59:33 +00:00
Colin Kuskie
604b021514
clean-up www_buy and addToCart. inventory control is now completely in the cart
2008-06-14 00:52:24 +00:00
Colin Kuskie
6908bcb1bb
fix a typo that caused variant skus to be be lost
2008-06-13 16:01:14 +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
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
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