Jump to content

How can I limit the amount of domain registrations from a client for a promo?


consc198

Recommended Posts

Hello.

 

I need to limit the amount of domain registrations from each client for a promotion we are running, the WHMCS promotion system doesn't offer this.

 

I've located http://www.jetserver.net/whmcs-product-limiter however it doesn't work with domains.

 

Does anyone know of possible solutions to this? I'm willing to pay to get a solution developed.

Link to comment
Share on other sites

I need to limit the amount of domain registrations from each client for a promotion we are running, the WHMCS promotion system doesn't offer this.

couldn't you use the "Apply Once" options to both the order and the client ? e.g the promotion code only works on one product/domain in the cart (regardless of how many are in the cart), and they're not allowed to re-use the promotion code for other orders.

 

http://docs.whmcs.com/Promotions

 

The final 4 checkboxes allow you to specify who can use the promotion:

  • Apply Once - If the client orders multiple qualifying products the discount is only applied once.
  • Apply Once / Client - If a client has an existing active order using this promotion they will not be able to use the code a second time.

Link to comment
Share on other sites

couldn't you use the "Apply Once" options to both the order and the client ? e.g the promotion code only works on one product/domain in the cart (regardless of how many are in the cart), and they're not allowed to re-use the promotion code for other orders.

 

http://docs.whmcs.com/Promotions

 

 

 

That wouldn't work unfortunately as want to limit customers so they can purchase up to 50 domains with the promo - i'm sure it can be done just need some sort of hook developed that will reject orders with over 50 domains basically.

 

- - - Updated - - -

 

If someone here can develop this for us please reply to this thread or PM me.

Link to comment
Share on other sites

That wouldn't work unfortunately as want to limit customers so they can purchase up to 50 domains with the promo - i'm sure it can be done just need some sort of hook developed that will reject orders with over 50 domains basically.

or perhaps disable the checkout button if there are 50+ domains in the cart - that would prevent the order even occurring.... that might just require an edit to a template.

 

If someone here can develop this for us please reply to this thread or PM me.

they won't be allowed to reply to this thread as it's against the forum rules to quote for paid work outside of Marketplace...

Link to comment
Share on other sites

depends where you want to do it! :)

 

e.g the hook code in the thread below calculates the number of domains and products and adds it to the navbar..

 

http://forum.whmcs.com/showthread.php?108886-Add-a-cart-icon-hook-to-the-script&p=445939#post445939

 

Btw I put a thread in the marketplace aswell hehe. I was thinking of adding a check in the checkout button to show an error if there is over 50 domains.

Edited by consc198
Link to comment
Share on other sites

Btw I put a thread in the marketplace aswell hehe. I was thinking of adding a check in the checkout button to show an error if there is over 50 domains.

exactly how might depend on which order-form template you're using, but as a very basic example with standard_cart, you could modify viewcart.tpl and change...

 

<a href="cart.php?a=checkout" class="btn btn-success btn-lg btn-checkout{if $cartitems == 0} disabled{/if}" id="checkout">
                                       {$LANG.orderForm.checkout}
                                       <i class="fa fa-arrow-right"></i>
                                   </a>

to...

 

<a href="cart.php?a=checkout" class="btn btn-success btn-lg  btn-checkout{if $cartitems == 0 or $smarty.session.cart.domains|count gt 50} disabled{/if}"  id="checkout">
                                       {$LANG.orderForm.checkout}
                                       <i class="fa fa-arrow-right"></i>
                                   </a>

untested, but that should disable the checkout button if the cart is empty or there are more than 50 domains in it.

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