Forums / Developer / Shop Donation / Comment46911
/dev/null
Wednesday 14 February 2007 5:00:57 am
I still think that there are a few conclusions you can make on this subject from this thread alone.
Still before I do I wanted to take it back for just a moment to point out that, The approach 'Rob' made was interesting in that he was trying to use a custom datatype in his product class which instead of providing a price from the content structure attribute providing a price from the form input submitted during the request.
So how many different ways were discussed here? - Using a workflow event and trigger to set the price summited by a user via $_POST variables during add to basket. - Using a custom datatype to use the submitted price instead during the add to basket usage. - Adding user permissions to create an instance of a class and update of a the object attribute transparently to the user (useful for complex product creation from other products)- Kernel Patch (of various types)
Did I miss one? Sounds a lot like no right or wrong answer on how to set the price more of where to insert an override to support the submission and storage of the information with a lot of options at every turn. More of a what meets my needs, what do I know how to do, how can I bridge the gap, where can I follow the data through the layers to point x in the code to insert value y using custom instance z an all the validation and error handling just in case too.
fun..<i>/dev/null</i>
eZpedia community documentation project: http://ezpedia.org