Jump to content

MikeS24

Members
  • Content count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

About MikeS24

  • Rank
    Junior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. MikeS24

    Adding second currency in invoices

    All prices are always set for all extensions that I add to my offer. When adding new extensions I tend to just duplicate a previous one and make changes where needed. Oh I think I have just found the exact reason of our misunderstanding here 🙂 I have never mentioned my website to you anywhere here Brian! I hope you wouldn't mind if I would just send a link to my website to you in a private message? When it comes to editing dist.whois.json - I do realise that this gets overwritten by updates, but this is just easier for me to experiment on this file for the time being, until I find the exact cause of these problems. Thank for pointing out the thing with .ES registry... It's a very important information for me to make a note of. Yes, I've already found out about this, and I can confirm that there is a seperate entry in the list for CentralNIC domains "socket://whois.centralnic.com" and that's where .COM.DE is placed.
  2. MikeS24

    Adding second currency in invoices

    Edit: .org.es was not present at all in dist.whois.json file and adding it to the line with other .es domains made it "searchable". The issue with the rest of them unfortunately persists and they all have their entries set to default and (probably) correct whois servers.
  3. MikeS24

    Adding second currency in invoices

    Thanks for the quick answer Brian! I think you have misunderstood me a little here - or very possibly I haven't explained the thing clearly enough, because I am a little tired... I am still a rookie, but I definitely understand that I have to put certain extensions into my offer to be able to search for their domains availability 🙂 I have WHMCS Namespinning set as my lookup provider. Extensions in question that I have a problem with are theoretically just completely regular ones .ru (with all available variants), .org.es (extension for spanish organizations - but the regular .es and .com.es work), .com.de (same here, .de works). Oh and btw. I haven't yet even started thinking about adding any "fancy" extensions which you've mentioned. I would prefer to make the regular ones work as intended before I start diving any deeper 😉
  4. MikeS24

    Adding second currency in invoices

    Big thanks for this spreadsheet Brian, it's really helpful. At least now I feel moderately safe setting up these domains. I have came across another little problem in WHMCS, but I really don't feel it's worth setting up another thread for it... so I'll just ask and maybe you'd know something about it. For some reason I am not able to perform a lookup/search for some specific domain extensions, ie .ru / .cn / .org.es / .com.de - and I can only guess how long the list goes... What I mean is, the process of searching for availability of domains seems to get stuck when looking up those extensions, and after about ten seconds just returns a regular message like "gdfgsdfgdfg.cn is unavailable"... Do you know what might be the reason for this? I have tried looking up some information, but the only things I've came upon were suggestions to update WhoIs lookup servers for specific extensions (I've tried - didn't work).
  5. MikeS24

    Adding second currency in invoices

    Hey Brian! Well, of course I don't intend to put all 800 or so extensions in my offer - I'm not suicidal yet 😄 However, I simply like to have them there available for picking anytime I might have a need to add something new or just in case some client has a special request. I must say, you have really shocked me with this piece of information... How the heck can they put that kind of info in their system when this is simply misinformative?! I mean, that information about Privacy option is visible both on their website and directly in their API, so it looks like they just don't give a blimp about what they put in there... I have contacted Netim about this and will patiently wait to see what they have to say. In the meantime, do you know any reliable source where I could obtain the truthful information about what is and what isn't available for certain domain extensions? Or is it just necessary to go through all specific domain registries to obtain the 100% correct information? Thanks for this, Brian. Have a good time!
  6. MikeS24

    Adding second currency in invoices

    Btw. I've noticed that a new update for WHMCS just came out - with all your experience, would be be able to tell me whether it would be safe for me to run this update Especially considering the domain module - could it break anything there? Of course I know I'll have to backup all the non-template modified files before this.
  7. MikeS24

    Adding second currency in invoices

    When it comes to NETIM, it actually came down in a "quick pick", when I've noticed that the previously chosen registrar didn't offer some extensions I really needed to put in my offer, I had to go look elsewhere and then I've found NETIM with their enormous catalogue of extensions to choose from. To tell you the truth, I am not planning to make any business on reselling domains - I only want to offer them as a reasonably-priced option for my customers. Like one guy once said... "You're either in a hosting business, or in the domain business - it's hard to do both", and that sounds extremely true, expecially for a guy like me just starting out with a totally new venture. Of course - and those exceptions as always complicate things a big way. For example: I've lately added some quite important ccTLDs to my list and extensions such as .de / .fr / .it / .uk all have ID Protection available for them. Btw. I do not plan to charge any fees for this option. Everyone should have the right to decide what they want to do with their info, and I don't intent to complicate this matter for anyone. Not in the least. I don't want to make any business out of this thing, I only want to do this for myself - but if it works, I wouldn't mind sharing the addon with the community, just as the original author did. I may start with the first version of this addon, as it only has about 60 lines of code in it (without the later additions), and see where it takes me. Once again, thank you for your input and assistance 😉 Have a good time, Brian!
  8. MikeS24

    Adding second currency in invoices

    Hey Brian! Oh man, I feel you... I'm also a HUGE fan of censorship 🤢 Oh, and about that posting lock lift after "usually no more than 10 posts" - I believe I must be one of the "unusual" members, since the warning still appears above my input field. Finally something makes me feel special! I am using NETIM as my domain registrar. I think their offer for resellers is probably one of the best in the market, at least for startups, though I wouldn't say the same about the quality of their admin panel and support... Anyways, from what I've noticed they allow us to get many info's through their APIs, including the full pricing list in XML format. There is already an addon for importing NETIM prices in CSV (in fact I think it's a script that converts that XML file to CSV) and using that with Hexonet's importer, however... 1) I think Hexonet's importer only includes main prices from those CSV tables (registration/transfer/renew) in the import process - without Redemption-Restore Fees, so I would still need to go through and edit those fields manually. If I was about to put hundrends of extensions in my offer, that still would be a painful experience... As well as having to set ID Protection / EPP Code availability (though in this case, I don't think there's any chance to handle this automatically, because that info is not included in the XML pricing list). 2) I was actually thinking of trying to rewrite this thing -> https://whmcs.community/topic/124653-easy-enom-tld-importer/ . I mean to make it work in general, because from what I see by users' posts the module is simply outdated. If that was done, there probably shouldn't be any problem with making this work with NETIM instead of ENOM (since originally the module took advantage of ENOM's XML list, so it would pretty much only require changing the XML link to NETIM's). Little question: Do you have some experience/knowledge about how often does the domain pricing usually change? I am still learning things and I'd like to know, more or less, how often should I take care of updating domain prices. Unfortuntely they do not offer any monitoring/pricing change notifications at NETIM (at least for the time being).
  9. MikeS24

    Adding second currency in invoices

    The posting lock should be lifted after "usually no more than 10" posts, according to the note I am seeing here. Well, it's likely that I just saw somebody else posting some info about how they did it, but from what I've noticed you're always all around the place helping people out with their problems, so big props to you anyway 😉 Next little-big thing I will be trying to do is an addon module for importing and setting the domain prices from my registrar's XML feed (also multiplying those prices by a fixed % to cover my markup). Actually I'm not gonna write the addon from the ground up myself, but use an existing module as a template and try to re-write it to achieve the needed outcome. From what I noticed by the comments that module is in a non-working state currently, so I might have to do some analysis on this matter also. I feel it's more than likely that I might be back here asking for a little assistance with this as well. In the meantime, have a good time and stay awesome!
  10. MikeS24

    Adding second currency in invoices

    Hey Brian, Thank you for one another helpful input! Yes, my posts are still getting through "purgatory" before they are released - it is a little annoying, but rules are the rules I guess. I absolutely didn't assume "->toNumeric()" would actually work in this case, as I thought "number_format" is the PHP version of that, and the first one is only available in Smarty templates. Of course... assumptions... Thanks for pointing this out. I think in a couple of days I will be trying to "save" the secondary currency value as a database entry, to solve the annoying problem with it changing every time the exchange rate gets updated. If I'm not mistaked, I have seen one of your posts where you explain how to do this with a hook. I'll try to figure it out, and hopefully I won't get stuck on my own stupidness again this time, haha... Have a good time! Best Regards, Michael
  11. MikeS24

    Adding second currency in invoices

    Unbelievable... I've managed to solved it on my own! It was necessary to get rid of the currency symbol before running the calculations. For some reason I thought the "number_format" thingy would do this, but it seems I was wrong. Here's how I've done this (just in case anyone else would get stuck with the same problem): Once again, thank you for your help and guidance Brian!
  12. MikeS24

    Adding second currency in invoices

    Of course, didn't I say I have a talent for overcomplicating things? I had this in mind, but it just seemed too simple of a solution to even consider this. For some reason, it seems that this field with secondary currency on pdf invoices shows just the currency to currency exchange rate output, and not the actual calculation for of the specific price in the field. From what I see, it's the same way in the image you showed me with your GBP>HRK price output. The result is just the 1 GBP exchange rate. I don't get why does it work this way, since the calculation formula seems to be formatted correctly and we actually see the correct exchange rate between two currencies being shown - it just doesn't seem to multiply the item price with this exchange rate. ('. number_format($item['amount'] * $exchangerate, 2, '.', '').' HRK) I'm sorry for troubling you with this Brian, I know this might be getting annoying for you already. Best Regards, Michael
  13. MikeS24

    Adding second currency in invoices

    Thank you Brian. I can't believe I have come this close to the solution, yet it would still take me eternity to figure this out on my own, haha... Sadly, it seems that capsule might be indeed disabled in my template, because I am getting an "Oops! Something went wrong" page when trying to download PDF file. I had no luck trying to google how to enable capsule for the template (or it's possible that I simply don't know what to search for...). Is this an easy thing to do or am I totally... out of luck in this scenario?
  14. MikeS24

    Adding second currency in invoices

    Hi again Brian! The implementation of the code and hook for the viewinvoice.tpl went successfully. I have customized it with the currencies from my page and it works. Thank you for your generous help with this problem of mine. Unfortunately, my lack of programming knowledge had hit me in the head once again and it really hurts me that I need to come here ask for help with yet another problem... I've spent many hours already and I'm still trying to figure out how to handle the exchange code implementation in the invoicepdf.tpl. The way you explained it to me (and from I've learned from some of your other posts), the "inside" part of the hook code should be implemented into the PDF template directly and the conversion calculation formula should be placed in fields where it's necessary. I've learned that there must be some slight tweaking done to the code when we transfer it to the PDF template, but after trying couple different methods already I still don't get the correct secondary currency output on PDF invoices. I feel that I've come really close to the correct format of the transferred code and calculation, but now I am kind of stuck with what I have and I'm not sure how to progress further. Below is the preview of the code the way I've implemented it inside invoicepdf.tpl. $pdf->Ln(10); ################################### ##### currency_exchange_rates ##### $clientcurrency = $vars['clientsdetails']['currency']; if ($clientcurrency == "1") { $exchangerate = Capsule::table('tblcurrencies')->where('code','HRK')->value('rate'); } elseif ($clientcurrency == "2") { $plnrate = Capsule::table('tblcurrencies')->where('code','PLN')->value('rate'); $hrkrate = Capsule::table('tblcurrencies')->where('code','HRK')->value('rate'); $exchangerate = number_format(((1/$plnrate) * $hrkrate), 5); } elseif ($clientcurrency == "3") { $eurrate = Capsule::table('tblcurrencies')->where('code','EUR')->value('rate'); $hrkrate = Capsule::table('tblcurrencies')->where('code','HRK')->value('rate'); $exchangerate = number_format(((1/$eurrate) * $hrkrate), 5); } elseif ($clientcurrency == "4") { $gbprate = Capsule::table('tblcurrencies')->where('code','GBP')->value('rate'); $hrkrate = Capsule::table('tblcurrencies')->where('code','HRK')->value('rate'); $exchangerate = number_format(((1/$gbprate) * $hrkrate), 5); } elseif ($clientcurrency == "5") { $jpyrate = Capsule::table('tblcurrencies')->where('code','JPY')->value('rate'); $hrkrate = Capsule::table('tblcurrencies')->where('code','HRK')->value('rate'); $exchangerate = number_format(((1/$jpyrate) * $hrkrate), 5); } elseif ($clientcurrency == "6") { } ##### currency_exchange_rates ##### ################################### foreach ($invoiceitems as $item) { $tblhtml .= ' <tr bgcolor="#fff"> <td align="left">' . nl2br($item['description']) . '<br /></td> <td align="center">' . $item['amount'] . ' ('. number_format($item['amount'] * $exchangerate, 2, '.', '').' HRK)</td> </tr>'; } And this is the result it gives me... I'm not sure what else I could do with this. I'll be grateful if you could take a look at it in your spare moment and let me know what am I missing or doing wrong. Best Regards, Michael
  15. MikeS24

    Adding second currency in invoices

    Hello Brian! Please forgive me for responding to you just now, but I was really busy with setting all other things up before we go live, and I actually remembered about this little currency thingy just today. First of all, you are a great guy, though I bet you hear this a lot. I am really thankful for all the time and energy you put into preparing the complete, ready to use code for my needs. Thanks for this wonderful gift! I still have some more things I need to take care of today, but I will definitely let you know about how it went with implementing the code as soon as I'm done with it. Once again, Big Thanks and Happy New Year! Michael
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated