By pwhite on
Hi,
I want to build my hosting website in Drupal and I'm trying to work out the best way to do it. The part I'm stuck on is how to pass the domain name from the domain name checker script to the ecommerce (or ubercart) module as either a product or product attribute. Has anyone else had a similar problem?
Thanks
Comments
Hmm... if I were you, I'd
Hmm... if I were you, I'd make it a text based attribute on a product in Ubercart. The cart will handle display of whatever value you put in there using the API and it will appear on orders, invoices, everything with no work. All you're going to have to do is use hook_form_alter() to make it so the customer can't adjust the qty. of a domain product in the cart. Also, don't forget to have your domain name checker check domains already in the customer's cart... : )
----------------------
Drupal by Wombats | Current Drupal project: http://www.ubercart.org