Jump to content

Recommended Posts

Hello,

Is there any way to auto select the domain configuration settings for DNS Management, ID Protection & Email Forwarding checkboxes by hook?

@brian! Hope you can do. 😍

download.thumb.png.e6c8f2ede89eaf93e7c172a5d76fbaea.png

Share this post


Link to post
Share on other sites
11 hours ago, Md Rasel Khan said:

Is there any way to auto select the domain configuration settings for DNS Management, ID Protection & Email Forwarding checkboxes by hook?

it's an expansion of the hook I posted in the thread below....

<?php

# Enable Domain Addons in Cart Hook
# Written by brian!

function enable_domain_addons_in_cart_hook($vars) {
	
	if ($vars['templatefile']=="configuredomains") {
		$domains = $vars['domains'];
		foreach ($domains as $key => $domain) {
			if ($domain['dnsmanagement'] == 1) {
				$domains[$key]['dnsmanagementselected'] = true;
			}
			if ($domain['emailforwarding'] == 1) {
				$domains[$key]['emailforwardingselected'] = true;
			}
			if ($domain['idprotection'] == 1) {
				$domains[$key]['idprotectionselected'] = true;
			}			
		}
		return array("domains" => $domains); 
	}
}
add_hook("ClientAreaPageCart", 1, "enable_domain_addons_in_cart_hook");

Share this post


Link to post
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.

Sign in to follow this  

  • Similar Content

    • By ModulesGarden
      1. Proxmox Mail Gateway For WHMCS [BRAND-NEW & 25% OFF!]

      After the introduction of proxy for Proxmox console which generated an outburst of applause among the Proxmox community, we immediately became pumped up for what’s next in store for our Proxmox product family. Will our next tool top that level of interest? We are about to find out!

      Proxmox Mail Gateway For WHMCS is a totally fresh product developed to automate the process of provisioning along with all crucial tasks related to the management of Proxmox Mail Gateway services. In addition to bringing each sold mail proxy service under remote control in the WHMCS admin area, the module will empower your clients to easily preview and update the essential service details such as the domain name or MX usage status.

      To bid Proxmox Mail Gateway For WHMCS a warm welcome at our Marketplace, the product is available for a limited time at a mind-blowing 25% discount!

      Help your clients tap into the email security of outstanding quality!



      2. OpenStack VPS & Cloud For WHMCS 2.1.0

      OpenStack VPS & Cloud For WHMCS has long been one of our most popular provisioning modules. Wondering how the product earned such a superior status? For starters, it successfully supports over 20 different cloud hosting providers, including the well-regarded Limestone Networks, and Virtuozzo Hybrid Infrastructure.

      No less importantly, the module is continually being fueled with ever new features based directly on your own requests and suggestions. You need look no further than the just released 2.1.0 version - it has been packed with some of the most creative pieces of customer feedback, including support for volume snapshots as well as the option to pin backups so as to avoid their overwriting.

      Discover more compelling facts about OpenStack VPS & Cloud For WHMCS 2.1.0!



      3. We managed to squeeze a few more interesting updates into this past week, such as QuickBooks Online For WHMCS 1.8.0 featuring not only an all-new credit system but also the export of invoices only from a selected time period. Be sure to check out also:
      Advanced Billing For WHMCS - v3.7.3 Domain & Email Forwarding For WHMCS - v1.4.2 Social Media Login For WHMCS - v1.3.9

      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By ModulesGarden
      With 2022 at full tilt now, let us not focus exclusively on keeping all the New Year’s resolutions that we have set for ourselves so ambitiously, but also, and more importantly, appreciate every favorable opportunity that the last year brought us, and reflect upon what important lessons are to be learned from it.
       
      As always at this time of the year, we have reserved some time to cherish all the past successes, such as the enthusiastically welcomed proxy for Proxmox console or DNS Manager For WHMCS 3.0 with a stunningly enhanced look and feel - all so we can establish the right growth path for the future. How about you head over to our recently launched Blog post, and join us in this meaningful celebration?

      Take a trip down the memory lane with us!
    • By ModulesGarden
      1. Feel the Christmas spirit and pay 11% less!

      At the close of another vibrant and highly creative year, we gratefully pause to wish you a warm and joyful holiday season. May the sweet atmosphere of Christmas conspire to make your dreams come true, and accompany your business development throughout the coming New Year!

      To make this special time even merrier, we have prepared for you a magical Christmas Promotion! Find out on our Blog how to fully benefit from the 11% discount applicable to each module offered on our Marketplace.



      2. DNS Manager For WHMCS 3.0

      Much to our delight, we announce that DNS Manager For WHMCS has reached the 3.0 milestone!

      To celebrate this significant stage in the module's development, we rebuilt the interface of the entire client area into a form that is both extremely intuitive for your customers, and eye-pleasing at the same time. Ready to assist your clients with all kinds of actions on DNS records, record sets as well as zones is also the keenly-expected bulk management tool!

      Read more on the ins and outs of DNS Manager For WHMCS 3.0!



      3. EasyDCIM v1.8.2

      We are genuinely pleased to confirm the official availability of EasyDCIM v1.8.2, the cutting-edge platform for automated data center management. The most noteworthy features that you are being invited to apply for the first time have been packed into the following two extensions:
      Switch Management v1.4.0 has made large-scale progress within the vast confines of VLAN management specifically due to unlocked support for switches with the HPE Comware Software and Arista VEOS systems. Thanks to OS Installation v1.9.5, the rapidly growing collection of OS templates welcomed two new in-demand arrivals, allowing the automatic installation of Proxmox VE 7.1 and Debian 11 "bullseye" systems. While on the subject of EasyDCIM, we also specifically recommend you check out EasyDCIM Dedicated Servers For WHMCS comprehensively enhanced to offer impeccable support for WHMCS V8.3 and V8.4.

      Get to know EasyDCIM v1.8.2 down to the smallest detail!



      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By m107
      Hi,
      Where in WHMCS client area the client can set the DKIM record? Here is the screenshot:, There is no "txt" record:

       
  • 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