Jeremy Shipman
Jeremy Shipman
Here's a screenshot from prestashop's database-driven custom status setup: 
May be useful for inspiration: https://github.com/silverstripe-australia/advancedworkflow
Price recalculations could be triggered when the product version no longer matches. Alternatively, the last modified date could be stored in the OrderItem, and a check is done against that...
An issue I'm facing is around the separation of raw values with template viewable fields. They can't be the same thing, because you can't do calculations with DBFields...can you? A...
Displaying prices could be made easier with some abstracted toolset. eg: ``` return ShopTools::displayValue($amount); ``` Returns a Money object with the passed value, and current site currency, and price is...
Need to avoid a system of price adjustments via extension hooks. We can't confirm the order these hooks are called.
I've renamed $product->Price to $product->BasePrice, and now introduced a function $product->sellingPrice() , which will eventually include discount calculations etc, but just returns BasePrice for now. Need to update migration task....
I'm working on a diagram of the pricing architecture: https://docs.google.com/drawings/d/1203XHXeol__qNye3hGL20sWWVeXYPQ0-p_vKJdqcTPM/edit
OSCommerce has an orderable Order Totals system: http://www.oscommerce.info/confluence/display/OSCDOC22/Order+Total
The Oracle ATG Commerce programming guide shows that their system is highly broken down into PricingEngines, PricingCalculators, and more. http://docs.oracle.com/cd/E26180_01/Platform.94/ATGCommProgGuide/html/s0801usingandextendingpricingservices01.html