Closed (duplicate)
Project:
e-Commerce
Version:
4.7.x-2.1
Component:
hosting
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2007 at 01:20 UTC
Updated:
19 Feb 2007 at 05:04 UTC
I just downloaded and installed 4.7.x-2.1, but can not locate the hosting module anywhere? I read in documentation that is is cvs, but when I go to ecommerce cvs repository, it's not there either. Can someone please help? Thanks.
Comments
Comment #1
neclimdulHosting has not been developed very heavily since 4.6 and was barely translated to 4.7. I think its even been partially translated to 5 so it may not work for 4.7 anymore.
That aside, you can find it by looking in the CVS repository. You can either read through the handbook article, download the latest HEAD Snapshot, or browse through the CVS repository.
Comment #2
somebodysysop commentedThank you. Downloaded HEAD and here is what hosting.module README.txt says:
Fair enough. Seems like one would be able to perhaps use another module and modify it to sell hosting, with one exception: How do you transfer the customer's specific requests to the admin?
In the current hosting module, when you add hosting to your cart, you are also prompted to enter your domain name and special requirements. These requirements should be forwarded to the admin once the transaction is completed. Can anyone point me to a module which does something similar so I could perhaps try to figure out how to add this feature to hosting?
Thanks.
Comment #3
neclimdulComment #4
neclimdulI ran across this old issue. If you want to continue the patch(I actually prefer the one attached to that issue for what its worth) that would help things along. A good review would be enough for a commit of that patch though probably not inclusion in a release. The module needs a lot of work to be very usable.
Comment #5
somebodysysop commentedThe version of the hosting.module I have has the patch applied. It works with respect allowing user to pay for hosting. What I'm trying to do now is bring back the user's provisioning instructions after the sale is made so I know what exactly they want done (i.e., domain name, hosting options, etc...).
In theme_product_hosting_view(&$node, $teaser = 0, $page = 0) there is this code:
When I do a store_transaction_load on an applicable transaction, I see the input in the "data" field in the items[] array:
stdClass Object ( [txnid] => 5 [uid] => 1 [type] => cart [mail] => [shipping_cost] => 0.00 [payment_method] => paypal [payment_status] => 2 [payment_date] => 1169529269 [workflow] => 6 [gross] => 0.50 [expires] => 0 [created] => 1169529251 [changed] => 1169529269 [duedate] => 0 [items] => Array ( [0] => stdClass Object ( [txnid] => 5 [nid] => 96 [vid] => 96 [title] => Web Site Hosting [price] => 0.50 [qty] => 1 [expires] => 0 [data] => a:2:{s:18:"hosting_add_domain";s:13:"www.testdomain.com";s:12:"instructions";s:21:"Please add my domain.";} [is_recurring] => 0 [price_interval] => 0 [price_unit] => [price_cycle] => 0 [auto_charge] => 0 [last_notify] => 0 [rtxnid] => [rnid] => [ptype] => hosting ) ) [misc] => Array ( [0] => stdClass Object ( [txnid] => 5 [type] => shipping [vid] => 0 [description] => Shipping [invisible] => 0 [price] => 0.00 [qty] => 1 [weight] => 9 ) ) [payment] => stdClass Object ( [txnid] => 5 [ppid] => 8498002B0 [fee] => 0.31 ) [ship] => )
My question is, how do I pull this data back out? What's the command to see the data elements "hosting_add_domain" and "instructions" from a particular transaction?
Once I figure this out, then I can figure out how to allow the admin user to view the hosting customer's requests. When that's done, the hosting module will at least be mimimally functional and useful.
Thanks!
Comment #6
somebodysysop commentedAnswered my own question: unserialize.
So, now, I've managed to capture the data that the customer inputs when he places hosting order, and display it on transaction screen.
I think the hosting-applications link is just to a node that lists applications. This could be easily created as a page node and aliased to "hosting-applications".
You mentioned that this module needed a lot of work to be released. I'm testing it now for just regular purchases. What else did you feel needed to be done?
Comment #7
simemarked as duplicate of
http://drupal.org/node/63364