Colin Kuskie
616d5cc866
Moose overrides for purge, purgeRevision, and purgeCache.
2010-04-07 16:43:16 -07:00
Colin Kuskie
dee5bbe5d0
Proper Moose setup for addRevision...
2010-04-06 16:13:02 -07:00
Colin Kuskie
814c2af249
Change calls to new to newById across Asset/
2010-03-03 16:27:45 -08:00
Colin Kuskie
117c7897bb
Closer to Roles. Remove also from WebGUI::Definition, and put use Moose in all Asset classes.
2010-02-26 12:01:25 -08:00
Graham Knop
20ee527dbd
change aspect to define
2010-02-17 16:31:10 -06:00
Colin Kuskie
b6e56566c1
Fix deleteFileUrl for image*, warranty, brochure and other file collateral in the product.
2010-02-09 20:38:21 -08:00
Colin Kuskie
d4f31870a3
change the name attribute to aspect to denote asset level static attributes like tableName, et. al.
2010-01-25 19:16:05 -08:00
Colin Kuskie
fcd68c93ac
Change autoGenerate=>0 to noFormPost=>0 in Product.
2010-01-20 20:15:25 -08:00
Colin Kuskie
36d1636f06
Comment out troublesome code, and provide a default sub for the Product.
2010-01-19 20:32:10 -08:00
Colin Kuskie
b979628f80
Update Product to use Moose.
2010-01-19 19:23:41 -08:00
Colin Kuskie
49bd7f5032
newByDynamicClass changed to newById
2009-12-27 19:08:15 -08:00
JT Smith
ccff9c7014
Converted all existing uses of cache.
2009-09-25 22:24:33 -05:00
Colin Kuskie
7fcb339605
Upgrade all database tables that use JSON to be LONGTEXT instead of what they were.
...
Addresses bug #10825
2009-08-25 21:42:16 +00:00
Colin Kuskie
e8bfd8a0a7
Empty warranty, brochure and manual show empty areas in the Product.
2009-07-27 16:21:04 +00:00
Colin Kuskie
bd924e8f88
Form/File will automatically delete empty storage locations, but assets
...
expect them to stick around. Add a flag to Form/File.pm to prevent it
from deleting them. Make sensitive assets use that flag.
2009-07-23 16:50:57 +00:00
Colin Kuskie
e335276cfa
Make the Product Sku copy the storage locations when a new revision is added.
2009-07-16 04:12:30 +00:00
Colin Kuskie
1f8302ef52
Add missing to the Product.
2009-07-04 21:28:52 +00:00
Colin Kuskie
df51a0d99f
Fix the form for the Product. It was returning variants with no quantity.
2009-07-03 16:19:26 +00:00
Colin Kuskie
e25094a16e
Remove dead code.
2009-04-30 20:31:10 +00:00
Colin Kuskie
01b8ccf412
Add getAddToCartForm to skus, update Shelf code, help, i18n and template.
2009-03-28 17:25:43 +00:00
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