Sunday 05 June 2005 6:21:40 am
I tried to understand something from this thread: http://www.ez.no/community/forum/developer/how_can_we_create_content_objects_from_code But I'm afraid I don't understand too much from the code. It seems that the code is a mix of standard PHP and some special eZpublish functions. I think I have to hire some ez programmer to do the task. A couple of hours will be enough to complete this for a person with a good knowledge of ezpublish. Once more:
1. I need a folder to be created each time a new user is registered in the system. That folder will be his 'personal' folder with the name just like the user's username. 2. I need to have the products in the basket moved from the 'Shop' folder and published in the current (logged in) user's folder.
Maybe I have to uncover the structure of my site a bit to make my posts more understandable. It's pretty simple. :) This is a simple shop of informational products. There is only one type (class) of product. It has 20 attributes. But only two of them - title and short_description are shown to the public in the shop. Once a buyer buys products each one is shown in his personal area on the site along with the rest 18 attributes. What is important - after a product is bought it is removed from the public area, i.e. it is unique (can be bought only once by someone). It is obvious that it's much more easier to grab and show the contents of user's personal folder in his personal area than to separate 'bought' and 'still on sale' products in some other way. That is why I need a new folder created when a new user signs up. So, how are the products brought into the personal folder? When a buyer clicks 'Checkout' the chosen product/products are removed from the 'Shop' (public) folder and published in his own Purchased/[Username] folder. And the last step. You might wonder - how can I show the product to a buyer immediately after checkout when there is no payment has been made yet. The answer is - the products will be placed in his folder upon the approval by the administrator. Each time a buyer clicks 'Checkout' the chosen products are removed from the public shop and appear in the administration collaboration area where I can approve them. After the approval, the buyer can safely review them. As for template progamming - fetching and showing the contents - I can do all that myself. I need only the core - making the work that is related to PHP and establishing workflow events. Let me know, if you have more questions, and thanks for your help.
Best, -Marat
|