Hi,
I have now tried all alternate methods with no joy and am coming to you!
What I require is to use an Ubercart product to allow new users to pay to list their service on the site. When they come to the site they see 'list your business' which takes you to the product 'service listing' and they buy it. during the process they enter their address details for billing and physical location, as well as other contact info. When the transaction is completed they are granted a role that gives them access to their 'My Account' page where they can enter a range of other information about their service.
I have created a panel to over ride the standard My Account 'view' page and want to create a View that displays the users contact details (as entered in ubercart registration) in text and as a Gmap.
I have looked through the uc_addresses module which certainly brings the address details into the My Account but I cannot the get them into a view to display properly either for text or Gmap. I have looked through http://drupal.org/node/347341 but it does not seem to work nor get me where i want to be.
It would be so great t get this happening so a fully funtctional directory can become a easy for both listing folk and people trying to find them.
Thanks
Cam
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | uc_views_addresses.zip | 2.49 KB | madsph |
Comments
Comment #1
madsph commentedI haven't had time to go over the patch that is submitted in the issue you are referring to. But I am sure we can get this to work somehow.
I haven't got time right now to look deeper into it today - but give me a few days and I will get back to you.
Comment #2
OnthegOinOz commentedGREAT!!! Look forward to it...
Bringing the uc registration address details in the Location module could also solve some things but I'll leave it with you, I am by no way able to code these things or know the best route!!
thanks again
Comment #3
madsph commentedI finished my other assignment a little early, so I took the time to look into this.
There are several problems with the patch (naming convention that are not kept, handlers that do not exist, missing join to users and so forth) so I decided to rewrite it into a new module. I am going to ask the permission to add it as a sub module to uc_views.
In the mean time you can use the attached patch.
This patch use some handlers from uc_views to display zones and contries. I can't remember why I disabled them in the original uc_views module - you will need to turn them back on again if you need to display these fields nicely.
to do that add the following:
to the field handler array at bottom of uc_views/views/uc_views.views.inc
There are still some code clean ups to do - but I think it works as you want it to now.
Comment #4
OnthegOinOz commentedFantastic!!! all works well... thanks for getting into it so quick!
So my next thing I was hopeing to acheive through this is to allow the creation of a gmap via a view. I may be doing this wrong but when I select Gmap as a style and it asks to select a data source which is either the location.module or Latitude & Longtitude fields.... can the new module you wrote be included as a data source??
Comment #5
madsph commentedYou are welcome :-)
I haven't been playing with Gmaps yet, so I can't really help you with that. It sounds interesting, so I guess I will have to get back to it sometime. For now I think you should make a support request in the Gmap forum if you need to solve this quickly.
I'd be much interested in hearing the solution though ;-)
Comment #6
OnthegOinOz commentedgreat to see the progress and integration with uc_addresses... I have contacted the Gmap crew re giving access to the uc_views_addresses module you wrote and then noted the changes that will be made to link it with the uc_addresses module. I have since updated the gmap discussion thread of what is happening so I am assumming I have not had a response from them until the final module is resolved.
Sooo... I just read the last post of freixas who needs some clarification from the fabulous code you wrote so I shall await further development before asking the Gmap crew again... ps the thread is at http://drupal.org/node/561728.
I love how everyone finds a way to mix it up together, sharing hte benefit round!!! Hope you find time soon to sort out friexas.
cam
Comment #7
OnthegOinOz commentedHi madsph,
Thanks for all your hard work in getting the this module happening... i've read the addresses thread. Thought I would let you know I have not had any response from the gmap crew no matter how many times i prompt it... I even tried to contact the project maintainer directly.... might not be something they consider important or have time to do? so as it stands I have hit a wall and not sure where to go...
If you have time to look at a way, based on the uc_views_addresses, to display a google location map as a view/block/pane so it can appear in a Panel page for a user, that would be fabulous.
Once again thanks for eveything you've done!
cam
Comment #8
madsph commentedIf I get the time I will look into it - but since I haven't had the need for this my self, I can't promise you any thing.
Comment #9
OnthegOinOz commentedtotally understand... any assistance appreciated!!!
thanks heaps for everything thus far...
Comment #10
OnthegOinOz commentedjust thinking about this and understanding need/time constraints... would it make a difference if you were paid to develop the ability to produce a link to a gmap view (location directional map)?
Comment #11
madsph commentedBased on the discussion in this thread #347341: Views integration I have agreed with the maintainer of Ubercart Addresses to add the view stuff to uc_views. I will add this to the project soon.
Comment #12
madsph commentedI have committed the patch now. It can be found in the 6.x-3.x-dev branch