Made a little progress on the sku tests and base class.
This commit is contained in:
parent
e9327db8d8
commit
2ca95d8586
3 changed files with 236 additions and 3 deletions
|
|
@ -12,6 +12,7 @@ The following fields are needed to construct this assets table called
|
|||
assetId guid The unique id assigned to this sku that may never change. It's with all assets
|
||||
sku varchar(35) unique The unique id that the shop keeper assigns to this item. It may be changed by the shop keeper. By default this is set equal to assetId.
|
||||
vendorId guid The unique id of the vendor associated with this sku, if any
|
||||
overrideTaxRate yesNo Do you want to use an override for tax rate?
|
||||
taxRateOverride float An override value for the default tax rate.
|
||||
|
||||
=head2 Method Dictionary
|
||||
|
|
@ -23,6 +24,8 @@ class.
|
|||
|
||||
Adds this sku to the shopping cart.
|
||||
|
||||
param: optionsHash - Takes an options hash and calls applyOptions() if specified as a shortcut.
|
||||
|
||||
=head3 applyOptions
|
||||
|
||||
Accepts a configuration data hash reference that can configure a sku a
|
||||
|
|
@ -31,12 +34,12 @@ t-shirt" instead of just "a
|
|||
t-shirt".
|
||||
|
||||
param: options - a hash reference containing the
|
||||
configuration properties returned from getConfiguration()
|
||||
configuration properties returned from getOptions()
|
||||
|
||||
=head3 getOptions
|
||||
|
||||
Returns a hash reference of configuration data that can return this sku
|
||||
to a configured state. See applyConfiguration() for details.
|
||||
to a configured state. See applyOptions() for details.
|
||||
|
||||
=head3 getMaxAllowedInCart
|
||||
|
||||
|
|
@ -58,7 +61,9 @@ By default return 0. Should be overridden by subclasses.
|
|||
|
||||
=head3 newBySku
|
||||
|
||||
Instanciates based on an existing sku, rather than an assetId.
|
||||
Class method.
|
||||
|
||||
Instanciates based on an existing sku, rather than an assetId. Dynamically looks up class and creates appropriate object.
|
||||
|
||||
param: session - a reference to the current session
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue