Search the Community
Showing results for tags 'variables'.
Found 7 results
-
Hello all. I am hoping you can help me do what I think should be simple for people who have dealt with hooks already. I want to do this: IF a product's ID = x (I imagine this involves getting the product ID from a variable and doing an IF statement in PHP) THEN get the service_domain field (built-in field, not custom field), run a shell script while passing the domain field as a bash variable to be used within the script's execution. Why do I want to do this? This will allow me to begin the process of provisioning maintenance coverage via WP CLI for customers who order a maintenance plan from us. I'll create an additional 2 hooks -- three total so one for each maintenance plan. If I can get the first hook, i can make the others and likely merge them together. I just need a "template" to follow from someone who understands PHP more than on the surface like I do. This ultimately will chain 3 of my servers together. WHMCS server, our cPanel server, and the maintenance server. Any help is appreciated. Would anyone be willing to paste in an effective code sample that I can use?
-
Hello, Could you give me all the variables available for a quote. I would like to include the price of the quote in my email. Thank you
-
Hello, I created a hook file for the 'OrderPaid' event and it seems like the $vars variable that is being passed to it always comes up empty. Does anyone know why this is happening?
-
Hi guys, i translated few content on my whmcs theme installation by modifying language override. Ill is working fine, my issue is that when the page load first time the translation does not load directly, i have to refresh the page for all content to appear. Any advise to help me solve this? thanks
-
1. OpenStack VPS For WHMCS 1.9.0Is the rising complexity of your VPS provisioning business starting to give you a headache? Make your job simpler with a tool perfectly fitted to this role - our OpenStack VPS For WHMCS!Upon the 1.9.0 update, the module received a bunch of new powerful tools: brand new backup functionality allowing you to create and restore copies of your volumes whenever required the newly minted support for variables used in the custom scripts to execute that will let you adjust them to particular clients greater functionality of server provisioning established by the thorough module’s integration with WHMCS V7.8.3 Curious to know what further perks are to be derived from this spanking new update?The module’s official changelog is open for investigation!2. Steel yourself for the ultimate and all-encompassing WHMCS V7.8.3 support list!We are almost there! Keep an eagle eye on the list of our WHMCS modules rendered 100% compatible with WHMCS V7.8.3 - it will be in full set any minute now. These are the products that have only recently entered this fully-fledged integration: CRM For WHMCS - v2.5.5 Resellers Center For WHMCS - v3.5.0 SMS Center For WHMCS - v3.4.1 Virtuozzo VPS For WHMCS - v1.5.1 Trace the full record on our Forums and rest assured that you have not missed a thing!3. Lately we have released two completely novel products dedicated to WHMCS - feel free to give them a closer study: Amazon Lightsail For WHMCS Cancellation Center For WHMCS Go for these all-new tools with a week-long free trial run and drive success right into the doorstep of your business.Read how to order it now, step by step!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!
-
Guys, Please what are WHMCS $email [customer & non-customer] , $product_ids and $product_names global variable that one can use with Facebook Pixel? For an example, these are purchase variables for: Shopify: '{{ total_price | money_without_currency }}','currency':'USD' Magento: <?php echo $amount; ?> WooCommerce: <?php echo $order->get_order_total(); ?> Squarespace: {orderGrandTotal} BigCommerce: %%ORDER_SUBTOTAL%%; Thanks
-
For all of you (like me) who are looking for or simply just would like to have a List of all Email Templates Variables Available when designing your email templates, my 2 cents: Client Related ID {$client_id} Client Name {$client_name} First Name {$client_first_name} Last Name {$client_last_name} Company Name {$client_company_name} Email Address {$client_email} Address 1 {$client_address1} Address 2 {$client_address2} City {$client_city} State/Region {$client_state} Postcode {$client_postcode} Country {$client_country} Phone Number {$client_phonenumber} Password {$client_password} Signup Date {$client_signup_date} Credit Balance {$client_credit} Card Type {$client_cc_type} Card Last 4 {$client_cc_number} Expiry Date {$client_cc_expiry} Remote Gateway Token {$client_gateway_id} Client Group ID {$client_group_id} Client Group Name {$client_group_name} Total Due Invoices Balance {$client_due_invoices_balance} Custom Fields (Array) {$client_custom_fields.1} Status {$client_status} Product/Service Related Order ID {$service_order_id} ID {$service_id} Signup Date {$service_reg_date} Product Name {$service_product_name} Product Description {$service_product_description} Domain {$service_domain} Config. Options {$service_config_options} Server Name {$service_server_name} Server Hostname {$service_server_hostname} Server IP {$service_server_ip} Dedicated IP {$service_dedicated_ip} Assigned IPs {$service_assigned_ips} Nameserver 1 {$service_ns1} Nameserver 2 {$service_ns2} Nameserver 3 {$service_ns3} Nameserver 4 {$service_ns4} Nameserver 1 IP {$service_ns1_ip} Nameserver 2 IP {$service_ns2_ip} Nameserver 3 IP {$service_ns3_ip} Nameserver 4 IP {$service_ns4_ip} Payment Method {$service_payment_method} First Payment Amount {$service_first_payment_amount} Recurring Payment {$service_recurring_amount} Billing Cycle {$service_billing_cycle} Next Due Date {$service_next_due_date} Status {$service_status} Suspend Reason {$service_suspension_reason} Cancellation Type {$service_cancellation_type} Username {$service_username} Password {$service_password} Custom Fields (Array) {$service_custom_fields.1} Domain Related Order ID {$domain_order_id} Signup Date {$domain_reg_date} Domain {$domain_name} SLD (yourdomain) {$domain_sld} TLD (com) {$domain_tld} Reg Period {$domain_reg_period} First Payment Amount {$domain_first_payment_amount} Recurring Amount {$domain_recurring_amount} Next Due Date {$domain_next_due_date} Expiry Date {$domain_expiry_date} Registrar {$domain_registrar} 'Days Until Expiry' and 'Days Until Next Due' will show 0 if the date has passed. 'Days After Expiry' and 'Days After Next Due' should be used if the date has passed. Days Until Expiry {$domain_days_until_expiry} Days Until Next Due {$domain_days_until_nextdue} 'Days After Expiry' and 'Days After Next Due' will only be defined if the date has passed. Days After Expiry {$domain_days_after_expiry} Days After Next Due {$domain_days_after_nextdue} Status {$domain_status} DNS Management {$domain_dns_management} Email Forwarding {$domain_email_forwarding} ID Protection {$domain_id_protection} Auto Renew Disabled {$domain_do_not_renew} Support Ticket Related ID {$ticket_id} Department {$ticket_department} Date Opened {$ticket_date_opened} Subject {$ticket_subject} Message {$ticket_message} Status {$ticket_status} Priority {$ticket_priority} Ticket URL {$ticket_url} Ticket Link {$ticket_link} Auto Close Time {$ticket_auto_close_time} Knowledgebase Auto Suggestions {$ticket_kb_auto_suggestions} Invoice Related Invoice ID {$invoice_id} Invoice # {$invoice_num} Date Created {$invoice_date_created} Due Date {$invoice_date_due} Date Paid {$invoice_date_paid} Invoice Items (Array) {$invoice_items} Invoice Items HTML {$invoice_html_contents} Sub Total {$invoice_subtotal} Tax {$invoice_tax} Tax Rate {$invoice_tax_rate} Credit {$invoice_credit} Total {$invoice_total} Amount Paid {$invoice_amount_paid} Balance {$invoice_balance} Last Payment Amount {$invoice_last_payment_amount} Last Payment Trans ID {$invoice_last_payment_transid} Payment Method {$invoice_payment_method} Payment Link {$invoice_payment_link} Subscription ID {$invoice_subscription_id} Status {$invoice_status} Invoice Link {$invoice_link} Previous Balance {$invoice_previous_balance} Total Due Invoices Balance {$invoice_total_balance_due} Notes {$invoice_notes} Other Company Name {$company_name} Domain {$company_domain} Logo URL {$company_logo_url} WHMCS URL {$whmcs_url} WHMCS Link {$whmcs_link} WHMCS Admin URL {$whmcs_admin_url} WHMCS Admin Link {$whmcs_admin_link} Marketing Unsubscribe URL {$unsubscribe_url} Signature {$signature} Full Sending Date {$date} Full Sending Time {$time} Conditional Display You can use conditionals to display text based on other values - for example: {if $ticket_department eq "Sales"} Sales only operates Monday-Friday 9am-5pm {else} Your ticket has been received and will be answered shortly {/if} Looping through data A foreach loop can be used to cycle through values like invoice items: {foreach from=$array_data item=data} {$data.option}: {$data.value} {/foreach}