Jump to content

Disble payment gateway for Domain Registering but not other


NetworkOfHosting.com

Recommended Posts

Can someone please please point me in the direction for doing this:

 

We want to paypal for Domain Name Registering only and e-gold and Alertpay and another customer payment module for hosting and other products and services that we manufacture or produce ourselves, so it costs us nothing in raw materials. We can exchange/sell it for anything we choose.

 

The problem is whenever you enable any payment gateway in whmcs, it's automatically (???) enabled for Domain Registering.

 

That's a big problem for us with the custom gateway because users who have account balances with custom payment gateway will surely swamp the Domain Registering offer and we only want to use paypal for that.

 

What can we do?

 

Thanks

 

NOH

Link to comment
Share on other sites

Hi,

 

Thanks for your reply.

 

Although we we have a service with a large e-gold client base, we have to convert e-gold to a payment form that the registrar (or registrar reseller) accepts.

 

This means we have to either charge more for the domain name over-all, no matter what form of payment. Or have two or more prices for domains... then convert the e-gold orders.

 

"other products and services" is not a problem since we manufacture for a low cost. Shared Webhosting (non-dedicated) is "e-gold friendly" too, because we can get Shared Hosting expensively.

 

But we can get hit hard if people continue to hit us with big amounts of e-gold for domains that we have to either use our cash for, or suffer the exchange rate (and we use others such as alertpay, liberty reserve, etc. and they're popular) ...

 

NOH

Link to comment
Share on other sites

Although we we have a service with a large e-gold client base, we have to convert e-gold to a payment form that the registrar (or registrar reseller) accepts.

 

Ah, I understand.

Of course you could always use a registrar that accets e-gold ;)

 

Only way I can suggest right now is that you remove e-gold from the available payment methods on the orderform, and add some text which reads "f you want to pay by egold please complete the order and then raise a support ticket in the client area"

and then you can manually change the payment method through whmcs on those invocies

Link to comment
Share on other sites

  • WHMCS CEO

Only showing the E-Gold gateway when there's no domain being ordered is easy to achieve with a template edit. You'd want to set the E-Gold gateway to not show on the order form by default and then in the viewcart.tpl template file, use the following code to show it when there are no domains in the cart:

 

{if !$domains}
<input type="radio" name="paymentmethod" value="egold" checked /> E-Gold
{/if}

 

Matt

Link to comment
Share on other sites

(Glad you guys were able to understand my message in spite of the typo errors, like when I typed 'expensive' instead of inexpensive)

 

Matt, That's it. Thank you Sir.

 

Ok, I've just spent a bunch of time trying to figure exactly where to put it. Still have not figured the best place to put the statement. I've put it here for now:

 

<p align="center">

{if !$domains}

<input type="radio" name="paymentmethod" value="egold" checked /> E-gold

{/if}

{foreach key=num item=gateway from=$gateways}

<input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}"{if $selectedgateway eq $gateway.sysname} checked{/if} /><label for="pgbtn{$num}">{$gateway.name}</label> {/foreach}</p>

 

Also, with web hosting, if the user has the option to include a domain name with their hosting it by-passes this modification. Apparently theres another some other variables (ie: $domains) - Where can I find them?

 

actionhooks.php? (No, I haven't the foggiest of what I'm looking at)

 

This has been driving us nuts for awhile. This is tying up some loose ends for us with whmcs. Close to be REAL HAPPY.

 

Thanks

Link to comment
Share on other sites

Here is some additional info:

 

With Web Hosting, if the user has the option to include a domain name with their hosting it by-passes this modification, right.

 

Ok, options are:

1) Disable Domain purchasing during Web Space purchasing (how come "$domains" is being by-passed here?)

2) Find the variable that says 'If Web Hosting is chosen and includes Domain, then no e-gold'

 

How can I find a list of variables (ie: $domains)? Is there one?

Link to comment
Share on other sites

Also, with web hosting, if the user has the option to include a domain name with their hosting it by-passes this modification. Apparently theres another some other variables (ie: $domains) - Where can I find them?

You cant, there is no (current) way with the built in ordering system to split the "cart" into multiple different gateways, Matt's code (or a derivative from it) would allow you to have egold as an option only if there's no domain.

 

If you're adamant about doing this I can only see it working if you make people order the domain and the the hosting as separate orders, but that *is* going to annoy a significant number of the potential purchasers

 

Rob

Link to comment
Share on other sites

You cant, there is no (current) way with the built in ordering system to split the "cart" into multiple different gateways, Matt's code (or a derivative from it) would allow you to have egold as an option only if there's no domain.

 

Hi. Thanks.

 

I might not have explained it right, but that's exactly what the problem is. With Web Hosting, if the Domain is included it still includes e-gold. Under the Domain registration option only, it does not. For some reason, during the Web Hosting purchase WITH Domain included, the >$domain< is not being picked up and I was wondering if it, or some other variable needs to be added some place.

 

I wouldn't mind if it goes "If a domain is included anywhere in the order, you can NOT use e-gold."

 

 

If you're adamant about doing this I can only see it working if you make people order the domain and the the hosting as separate orders, but that *is* going to annoy a significant number of the potential purchasers

 

Yes, I was/am concerned about that too.

 

But anyway, I thought if the >$domain< line was added, e-gold would appear if a domain was included anywhere in the order.

 

Again, maybe I need to place it somewhere else for web hosting?

 

NOH

Link to comment
Share on other sites

Help disappeared on me after my last entry here, but:

 

EUREKA!

 

I've discovered that the problem is the template itself!

 

For some reason when using the template 'singlepage' the mod does not work with 'hosting with domain included'.

 

When I enter the mod in to the same location in the 'boxes' template, it works for domain name only orders AND web hosting and domain name orders.

 

Here is is where I entered the mod:

 

163 <p><b>{$LANG.orderpaymentmethod}</b></p>

164 <p align="center">

165 {if !$domains}

166 <input type="radio" name="paymentmethod" value="egold" checked /> E-gold

167 {/if}

168 {foreach key=num item=gateway from=$gateways}<input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}"{if $selectedgateway eq $gateway.sysname} checked{/if} /><label for="pgbtn{$num}">{$gateway.name}</label> {/foreach}</p>

 

NOH

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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