[solved]Order module FEU address retrieval&[need advice]Optional notes for order
Posted: Thu Sep 30, 2010 12:08 pm
PROBLEM 1 - FEU adress retriaval
I don't even know exactly what to ask... I can't figure how address retrieval from FEU method works...
What I did:
- FEU set up, group and all extra fields...
- field mapping setup
I get all data from FEU in smarty vars on the template, but I am still presented with the blank form...
I don't know if it is the expected behavior, but I was expecting the billing form to be generated with data from FEU, so on submit I can add a function to optionally update FEU info and proceed with billing..
I found a way to solve the problem of form element values (JS on load, fill the form from smarty vars), but I would prefer to have the form elements rendered with the values from FEU...
PROBLEM 2 - additional data for each product in cart
I need additional data to be stored with the order for each purchased item (to be precise, course, and the additional data is the scheduled date)..
* Products - courses are defined here, no options, additional fields
* CGCalendar - admin templates modified (some default fields are hidden and updated via JavaScript on change) to provide an easy way of scheduling courses (items are stored with the name of the course)
* Orders - (supposed to) process the order, add selected dates as option or note for items in cart...
How would I in theory accomplish this?
Theoretical problems I am facing with this aproach (I didn't try to solve it yet):
- I have to limit the cart to accept only unique items (visitors are not supposed to schedule the same course twice, but can order all courses if they have enough money)
- I have to pass few arguments to the cart (later to order module) from the date selector view of cgcal (i've put the date selector in a fancybox popup with the "add to cart" button)
I tried to accomplish the desired functionality with Availability, but was way too much for me... Maybe i got it wrong, but i think that it would need too much hacking to get it work like i need it to:
- courses would be defined as resources and would have their max capacity
- user would book a course if max capacity is not reached...
From what i've understood, with availability module, I would sell the whole course, not available free lots for each course, so I opted for Product/cart/Order modules...
Please give me your opinion on these dilemmas I'm having
I don't even know exactly what to ask... I can't figure how address retrieval from FEU method works...
What I did:
- FEU set up, group and all extra fields...
- field mapping setup
I get all data from FEU in smarty vars on the template, but I am still presented with the blank form...
I don't know if it is the expected behavior, but I was expecting the billing form to be generated with data from FEU, so on submit I can add a function to optionally update FEU info and proceed with billing..
I found a way to solve the problem of form element values (JS on load, fill the form from smarty vars), but I would prefer to have the form elements rendered with the values from FEU...
PROBLEM 2 - additional data for each product in cart
I need additional data to be stored with the order for each purchased item (to be precise, course, and the additional data is the scheduled date)..
* Products - courses are defined here, no options, additional fields
* CGCalendar - admin templates modified (some default fields are hidden and updated via JavaScript on change) to provide an easy way of scheduling courses (items are stored with the name of the course)
* Orders - (supposed to) process the order, add selected dates as option or note for items in cart...
How would I in theory accomplish this?
Theoretical problems I am facing with this aproach (I didn't try to solve it yet):
- I have to limit the cart to accept only unique items (visitors are not supposed to schedule the same course twice, but can order all courses if they have enough money)
- I have to pass few arguments to the cart (later to order module) from the date selector view of cgcal (i've put the date selector in a fancybox popup with the "add to cart" button)
I tried to accomplish the desired functionality with Availability, but was way too much for me... Maybe i got it wrong, but i think that it would need too much hacking to get it work like i need it to:
- courses would be defined as resources and would have their max capacity
- user would book a course if max capacity is not reached...
From what i've understood, with availability module, I would sell the whole course, not available free lots for each course, so I opted for Product/cart/Order modules...
Please give me your opinion on these dilemmas I'm having