
Safir Hosting
Retired Forum Member-
Posts
37 -
Joined
-
Last visited
About Safir Hosting

Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Safir Hosting's Achievements

Member (2/3)
1
Reputation
-
Custom Email Template Variable Issue
Safir Hosting replied to Safir Hosting's topic in Admin & Configuration Questions
Actually yes even on new order. I also created some email templates on WHMCS 7.x.x those templates are working fine with all details included. Only newly created templates not working. (Version latest btw) -
Custom Email Template Variable Issue
Safir Hosting replied to Safir Hosting's topic in Admin & Configuration Questions
I tried altering Order Confirmation mail but no luck still no order number or details. Also i tried altering credit card payment complete template but nope 😞 -
Custom Email Template Variable Issue
Safir Hosting posted a topic in Admin & Configuration Questions
Hello All, On Whmcs default email templates (Like General > Order Confirmation), i can use "order_number" and "order_details" but when i create a custom email template (both on General & Product/Service) i cannot use that variables. The email comes empty on those areas. Working One Dear {$client_name}, We have received your order and will be processing it shortly. The details of the order are below: Order Number: {$order_number} {$order_details} You will receive an email from us shortly once your account has been setup. Please quote your order reference number if you wish to contact us about this order. Regards {$signature} Not Working (Empty) One CONTRACTUAL SERVICE AND PRODUCT INFORMATION The main features of the Product and Service are available on the Website. The sales price of the product and service subject to the contract, including all taxes, is shown in the table below. If the campaign is organized by the PROVIDER, you can review the basic features of the relevant Service during the campaign. The prices listed and announced on the Website are the selling price. Advertised prices and promises are valid until updated and changed. Prices announced for a period of time are valid until the end of the specified period. Order Number : {$order_number} Order Details : {$order_details} -
Autofill Custom Agreements on Checkout Page
Safir Hosting replied to Safir Hosting's topic in Admin & Configuration Questions
I Have done this with perfection by Pete Murphy. Here is the solution that need extra help, I think we can send unlimited information mails with this but be careful on email template group that used, not auto filling some areas. <?php add_hook('AcceptOrder', 1, function($vars) { $command = 'SendEmail'; $postData = array( 'messagename' => 'E-Mail Template Name Here', 'id' => '1', ); $results = localAPI($command, $postData); }); -
Autofill Custom Agreements on Checkout Page
Safir Hosting replied to Safir Hosting's topic in Admin & Configuration Questions
Hello, we tried something and seems not worked. Can you help me, <?php add_hook('OrderPaid', 1, function($vars) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www.safirhosting.com/includes/api.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( array( 'action' => 'SendEmail', // See https://developers.whmcs.com/api/authentication 'username' => 'ApiUserName', 'password' => 'ApiPassword', '//example1' => 'example', 'messagename' => 'Mesafeli Satış Sözleşmesi', 'id' => '1', '//example2' => 'example', 'customtype' => 'product', '//customsubject' => 'Mesafeli Satış Sözleşmesi', '//custommessage' => '<p>Thank you for choosing us</p><p>Your custom is appreciated</p><p>{$custommerge}<br />{$custommerge2}</p>', '//customvars' => base64_encode(serialize(array("custommerge"=>$populatedvar1, "custommerge2"=>$populatedvar2))), 'responsetype' => 'json', ) ) ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); }); -
Hello All, Can you help me on below error, got this after 8.7 update on some modules Whoops\Exception\ErrorException: Invalid opcode 123/0/0. in /var/www/vhosts/safirhosting.com/httpdocs/panel/vendor/whmcs/whmcs-foundation/lib/Model/AbstractModel.php:0 Stack trace: #0 /var/www/vhosts/safirhosting.com/httpdocs/panel/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError() #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main}
-
Disabling CC Save on checkout
Safir Hosting replied to Safir Hosting's topic in Admin & Configuration Questions
Hello yggdrasil, The "Save Card for future..." button is selected and when i disable this section from template yes i don't see that section but page throws me an error of "you didn't entered a name for cc" so what i need is deselect the button and hide the name textbox and button regards -
Disabling CC Save on checkout
Safir Hosting replied to Safir Hosting's topic in Admin & Configuration Questions
Hello All, I still need help on this 🥺 -
Hello All, There are some laws like GDPR here in Turkey and we need to auto create and auto fill some agreements on checkout of an order. Can we achieve this? Example Below Service Provider Information Seller Name : ISP Name (fixed data) Seller Address : ISP Address (fixed data) Seller Phone : ISP Phone (fixed data) Seller Fax : ISP Fax (fixed data) Seller e-Mail : ISP Mail (fixed data) Customer Information Customer Name : Need to autofill with Client Information or Contact Information that client selected on checkout page Customer Address : Need to autofill with Client Information or Contact Information that client selected on checkout page Customer Phone : Need to autofill with Client Information or Contact Information that client selected on checkout page and also need to anonymize e-Mail/UserName : Need to autofill with Client Information or Contact Information that client selected on checkout page and also need to anonymize Billing Information Name/Surname/Company Name : Need to autofill with Client Information or Contact Information that client selected on checkout page Tax Office and Tax Number : Need to autofill with custom text area from Client Information or Contact Information that client selected on checkout page and also need to anonymize Customer Adress : Need to autofill with Client Information or Contact Information that client selected on checkout page Customer Phone : Need to autofill with Client Information or Contact Information that client selected on checkout page and also need to anonymize e-Mail/UserName : Need to autofill with Client Information or Contact Information that client selected on checkout page and also need to anonymize CONTRACTUAL SERVICE AND PRODUCT INFORMATION The main features of the Product and Service are available on the Website. The sales price of the product and service subject to the contract, including all taxes, is shown in the table below. If the campaign is organized by the PROVIDER, you can review the basic features of the relevant Service during the campaign. The prices listed and announced on the Website are the selling price. Advertised prices and promises are valid until updated and changed. Prices announced for a period of time are valid until the end of the specified period. Product Name : Need to autofill from cart - if there are more than one products need to be rows Quantity : Need to autofill from cart - if there are more than one products need to be rows Unit Price : Need to autofill from cart - if there are more than one products need to be rows Total (with TAX) : Need to autofill from cart - if there are more than one products need to be rows *** If the product will be shipped, the shipping fee, which is the shipping cost, will be paid by the Client. Shipping Address : Need to autofill with Client Information or Contact Information that client selected on checkout page Shipped To : Need to autofill with Client Information or Contact Information that client selected on checkout page Billing Address : Need to autofill with Client Information or Contact Information that client selected on checkout page Order Date : Need to autofill with Checkout Date Delivery Method : (fixed data) Any Help Appreciated
-
Hello All I am trying to redirect users to invoice directly on checkout page with below settings but it seems it is not working. Every time user tries to pay a product, it redirects to payment gateway or order completed page depending on the gateway user selected. How can i correct it? Auto Redirect on Checkout Just show the order completed page (no payment redirect) Automatically take the user to the invoice
-
Disabling CC Save on checkout
Safir Hosting replied to Safir Hosting's topic in Admin & Configuration Questions
Any body? Need help 😞 -
Hello All, I need to disable saving credit card for security reasons. Every customer have to enter Credit Card number from scratch on every time they want to buy a service. Can you help me on this please. Regards
-
Custom Fields - Dropdowns (Require?)
Safir Hosting replied to CavalloComm's topic in Developer Corner
Yes it is working as expected, customer cannot proceed to checkout if he/she don't choose an option from dropdowns -
Custom Fields - Dropdowns (Require?)
Safir Hosting replied to CavalloComm's topic in Developer Corner
Hello Brian, When cart loaded the screen like below And on checkout like below I couldn't get what is the problem here. Regards -
Custom Fields - Dropdowns (Require?)
Safir Hosting replied to CavalloComm's topic in Developer Corner
Hello Brian, I've resolved it by editing configureproduct.tpl with below code {if $configoption.optiontype eq 1} <div class="col-sm-6"> <div class="form-group"> <label for="inputConfigOption{$configoption.id}">{$configoption.optionname}</label> <select name="configoption[{$configoption.id}]" id="inputConfigOption{$configoption.id}" class="form-control" required> <option disabled selected value>--- Please Select an Option ---</option> {foreach key=num2 item=options from=$configoption.options} <option value="{$options.id}"{if $configoption.selectedvalue eq $options.id}{/if}> {$options.name} </option> {/foreach} </select> </div> </div>