Pica Posted December 10, 2002 Share Posted December 10, 2002 Hello... Anyone has some module to search and eventually order domain name registration within OSC ? I have been testing Dave Howarth's "Domain_Search1.php" which is ok once I got it under the same layout as the rest of my website. It works fine ONLY within the english version. If I switch to another language (e.g. french) I get a "not found product" message although I have the correponding amount to pay in my Shopping_cart and there's no product shown. Back to english, everything is there and in the shopping_cart, I see a product like "doudoudou.com" (if I'm ordering that domain). Anyone has an idea why it fails to show that in other languages ? If anyone has another contribution to search & order domain names, please say so. Thanks in advance. Paulo Quote Link to comment Share on other sites More sharing options...
cannuck1964 Posted December 10, 2002 Share Posted December 10, 2002 Hi there, I believe the problem you are having comes from the fact that when the product is added to the DB table, it is put in the english one only, and no other language. So when you switch to a new language, the product is not found... I am not positive, but I think that is the case.... cheers Quote Peter McGrath ----------------------------- See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation Link to comment Share on other sites More sharing options...
Pica Posted December 10, 2002 Author Share Posted December 10, 2002 I see... Thank you for your reply. Anyway, is this new as request or did anyone else already worked on this kind of "sale" ? I find it weird there's none or hardly no info on this matter. Feel free to drop me a line if you have a clue on this. Thanks. Paulo Quote Link to comment Share on other sites More sharing options...
Pica Posted December 10, 2002 Author Share Posted December 10, 2002 Hello all... Is there anyone at all using OSC and Domain Search & Order procedures? I'm almost done with it but there are a few bugs with this... The language problem still exists and I found one more... Each domain searched in this page (domain_search.php) is added to the products table. I found it weird when I saw the total records value going up... Thanks in advance to anyone replying to this with some working solutions. Paulo. Quote Link to comment Share on other sites More sharing options...
Pica Posted December 10, 2002 Author Share Posted December 10, 2002 Am I the only one needing this feature ?... Hello ?! Anyone ?! :oops: Paulo. Quote Link to comment Share on other sites More sharing options...
Pica Posted December 11, 2002 Author Share Posted December 11, 2002 Hello you all... Say, with so much nice people using this great tool (OSC) how can it be that no one has an answer to this matter? Please... please... please.... :cry: Quote Link to comment Share on other sites More sharing options...
Pica Posted December 11, 2002 Author Share Posted December 11, 2002 Hello you all... Say, with so much nice people using this great tool (OSC) how can it be that no one has an answer to this matter? Please... please... please.... :cry: Quote Link to comment Share on other sites More sharing options...
sw45859 Posted December 11, 2002 Share Posted December 11, 2002 i was going to get into domain registration but can't afford the thousands it costs to become a registrar Quote Link to comment Share on other sites More sharing options...
Pica Posted December 12, 2002 Author Share Posted December 12, 2002 I understand what you mean. The question is I am able to register lots of TLD domains with a registar with my own account within minutes. Therefore, by having a domain search and order tool with OSC I could have my clients ordering domains to me when buying products in my website in stead of looking for someone else. Paulo. Quote Link to comment Share on other sites More sharing options...
tkeats Posted January 29, 2003 Share Posted January 29, 2003 Has anyone successfully added additional 'domain nic's' to this script? I am having some issues with adding a .ca .. its saying domains that are not available are.. I've copied the .com part and changed all 'com' to 'ca' and changed the whois to whois.cira.ca/whois.internic.ca testing both, neither working. I have a feeling I am missing something but cant put my finger on it. Thomas Quote A signature is something that reflects its user. - The dictionary The question is not, 'to code, or not to code' the question is, 'if we do not code, are we really alive?' -- anonymous Link to comment Share on other sites More sharing options...
brobert2 Posted March 11, 2003 Share Posted March 11, 2003 try this :D $ca_server = "whois.cira.ca"; $ca_nomatch = "AVAIL"; $ca_include = true; if the status of the domain name are available the server send the value nomatch "AVAIL" Quote Link to comment Share on other sites More sharing options...
calimero1505 Posted July 5, 2003 Share Posted July 5, 2003 I installed the same script, but i get the following error: Fatal error: Cannot redeclare _sess_open() (previously declared in /home/httpd/vhosts/server/httpdocs/catalog/includes/functions/sessions.php:18) in /home/httpd/vhosts/server/httpdocs/catalog/includes/functions/sessions.php on line 18 Quote Link to comment Share on other sites More sharing options...
jyt Posted July 6, 2003 Share Posted July 6, 2003 Finally working again on my site, it has been a while since I had the time to work at it, been too busy. Mais oui Pica, moi aussi je veut offrir le service en francais, mais il y a un gros probleme avec la basse de donne, i will have to look at it closely, in the mean time I had no problem setting the .ca registrar in my site, but one again only in english, hopefully soon someone will find a way to add multi-language to this great contributions, all for the best for OS users and developper for .ca add the following to the domain_search.php $caserver = "whois.cira.ca"; $canomatch = "AVAIL"; //$cainclude = true; // not needed ----- case ca: $price="18.95"; break; ----- <OPTION VALUE=ca> .CA ----- // .ca if($type == "ca") { $caarray = array($domain.".ca"); $cacount = count($caarray); $i=0; for ($i=0;$i<$cacount;$i++) { $domname = $caarray[$i]; $query = $domname."@".$caserver; $result = ""; $ns = fsockopen($caserver,43); fputs($ns,"$domnamern"); while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($canomatch,$result)) { dispav($domname); } else { dispun($domname,$caserver); } } echo "<tr><td colspan=5 bgcolor=$sepcolor><font face=$fontface size=$fontsize> </td></tr>"; } ---- that's it, as simple as the other one Quote Link to comment Share on other sites More sharing options...
Pica Posted July 7, 2003 Author Share Posted July 7, 2003 Hi all... I'm happy to get some replies to message posted some months ago : guess we all been busy !!! I took a look at your site and it's great ! I keep wondering what am I doing wrong.... 1. How can I avoid Ordered domain names to be added to the products list ? 2. How can I avoid them to show in the New Products in the Default page ? 3. How can I exclude the Domain Names category to be listed in the Advanced Search page ? (maybe there's a better contribution that I missed...) For the different DNS services, I had no trouble so far. Thanks in advance for your replies. Best regards, Paulo. Quote Link to comment Share on other sites More sharing options...
Pica Posted July 8, 2003 Author Share Posted July 8, 2003 I am almost finished with this tool... still, an error message remains : Warning: fclose(): supplied argument is not a valid stream resource in domain_search1.php on line 66. Which is : $opennewcount = @fopen($counterfile,"w"); @fwrite($opennewcount, $newcount); fclose ($opennewcount); This doesn't seem to disturb the result of the query but, it's quite annoying as it appears on the screen. On the other hand, what can I do in order to remove Delivery fees when ordering a domain name ? Thank you all. Paulo. Quote Link to comment Share on other sites More sharing options...
Pica Posted July 15, 2003 Author Share Posted July 15, 2003 I used the "Store PickUp" files and adapted them to "online Services" in order to set delivery fees to 0.00. For the rest, I am stucked with that "fclose()" thing... Any ideas ? Thx, Paulo. Quote Link to comment Share on other sites More sharing options...
jyt Posted July 26, 2003 Share Posted July 26, 2003 Anyone has an idea why it fails to show that in other languages ? try to figure it out, here what i found in the domain_search.php file: tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " values ('', '1', '". $what ."', '" . $type . "', '', '')"); if you replace the value 1 for an other language id like for me it's 4 for french then it does work in french, but french only, how can i set this to change depending of the language? that's the next step, anybody knows how to, I'm not to familiar with php coding but should be simple. -jy Quote Link to comment Share on other sites More sharing options...
Pica Posted July 26, 2003 Author Share Posted July 26, 2003 Hummm... that makes sense ! Thx. BTW, how about repeating that sentence... let's say : tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " values ('', '1', '". $what ."', '" . $type . "', '', '')"); tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " values ('', '2', '". $what ."', '" . $type . "', '', '')"); Could that work ? :roll: BTW, any clue on that fcolse() error ? P. Quote Link to comment Share on other sites More sharing options...
jyt Posted July 27, 2003 Share Posted July 27, 2003 looking at your suggestion, it wouldn't work since this isn't also increment the product table, but by adding this also you do increment both, the only problem is the module doesn't recognize the incrementation properly and jump an extra product_ID, which mean it doesn't see the first product_ID, it's there but can be pick by the domain_search.php, it need extra coding here. tep_db_query("insert into " . TABLE_PRODUCTS . " values ('', '1', '" . $type . "', '', '" . $price ."', '', '0', '1', '1', '1', '', '" . $newcount ."', '')"); tep_db_query("insert into " . TABLE_PRODUCTS . " values ('', '1', '" . $type . "', '', '" . $price ."', '', '0', '1', '1', '1', '', '" . $newcount ."', '')"); tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " values ('', '1', '". $what ."', '" . $type . "', '', '')"); tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " values ('', '4', '". $what ."', '" . $type . "', '', '')"); in regard of your bug (fcolse() error ), not certain why it is happening to you perhaps you are using a more recent version of osC then mine. Quote Link to comment Share on other sites More sharing options...
masgra Posted November 13, 2003 Share Posted November 13, 2003 chmod counter.dat to 666 and the fclose() error goes away! Hope this helps. Quote Link to comment Share on other sites More sharing options...
masgra Posted November 14, 2003 Share Posted November 14, 2003 chmod counter.dat to 666 and the fclose() error goes away! Hope this helps. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 12, 2004 Share Posted June 12, 2004 How can you stop the names searched for being added to the product database? And in any case, why would anyone want it to do that. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.