Jump to content


Senior Member
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About SametALMDR

  • Rank
    Junior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello everyone , I've got a question about a hook.I am trying to access the active currency (selected currency by the user) on the OrderProductPricingOverride hook. But ı could not access that variable in any way. How can access the currency which is selected by the user on the OrderProductPricingOverride hook ? Can anybody help me ? @brian! 🙂
  2. I am so sorry for that because you know everything we want and ı saw you as a staff but ı got it now🙂 There is no hook about that right ? I tried to find it but ı couldnt find .
  3. Hello staffs, As we know that to give a server product order we need to fill server information . Like hostname,password,ns1,ns2 .. we want to change these information when we change the quantity of the product that we selected. For example ,we choose a product and changed the quantity as 10 in viewcart.php .So the thing that ı want to do how can we change these 10 product information . Like the first product hostname1 ,second 2 etc. I tried to call a hook which name is (OrderProductPricingOverride) but ı just saw 3 array that holds some information about these things. Can you help me to solve that problem @brian! or another staffs please 🙂
  4. Dear staffs, I have been using the whmcs panel for about 4 years, but I have been encountering a problem for the last 2 months. The private servers I added have been deleted every month and this has started to disturb me. Can you explain why this problem happens? @brian!
  5. Dear All, I tried to send a custom email using PHPMailer but it doesnt work.I run the following codes and the information name surname etc. comes from an form which is in index page. add_hook('ClientAreaPage', 1, function($vars) { $mail = new PHPMailer(true); if(isset($_POST['contact_ex'])){ try { //Server settings $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = '---'; $mail->Password = '---'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; $mail->CharSet = 'utf-8'; //Recipients $mail->setFrom($_POST['email'], $_POST['namesurname']); $mail->addAddress('example@hotmail.com', '--'); $mail->addReplyTo($_POST['email'], $_POST['namesurname']); // Content $mail->isHTML(true); $mail->Subject = 'Subject'; $mail->Body = 'Some message'; if($mail->send()){ $res = '<div class="alert alert-success" role="alert"> <h5 class="alert-heading">Well done!</h5> <p class="mb-0">Your contact information has been sended successfully!</p> </div>'; }else{ $res = '<div class="alert alert-danger" role="alert"> <h5 class="alert-heading">Oops!</h5> <p class="mb-0">Something went wrong.Please contact with us with phone!</p> </div>'; } } catch (Exception $e) { $res = '<div class="alert alert-danger" role="alert"> <h5 class="alert-heading">Oops!</h5> <p class="mb-0">Something went wrong.Please contact with us with phone!</p> </div>'; } } }); It gives an error about class is not found how can ı create a PHPMailer object.Can you help me @brian! and all of guys ?
  6. Thanks a lot @brian!😄 I did an override hook such as below but lastly ı have got a question .How can ı override the description text box according to these code parts ? Can you modifed it 🙂 There is a paramater exist in $vars variables which is named proddata . I guess this array includes such those information about product description . How can ı override the text box information? Can you give an example ? add_hook('OrderProductPricingOverride', 1, function($vars) { $return = []; if ($vars['pid'] == 1) { $return = ['recurring' => '20.00',]; } if ($vars['pid'] == 2) { $return = ['setup'=>'10.00','recurring' => '30.00',]; } if ($vars['pid'] == 3) { $return = ['setup'=>'10.00','recurring' => '30.00',]; } return $return; });
  7. yeah most probably there is an override hooks exist but ı dont understand that how the price does not create any problem in the background
  8. https://www.muvhost.com/almanya-lokasyon-dedicated-sunucular these are the products that ı send to you as a link
  9. Assume that we have a single product and it has a customfield which has an id 77. according to this customfield content like customfield[77]=1101435 , customfield[77]=1101496 ,customfield[77]=1121496 these links has it's own prices how can we do that with a custom field ı attached the example website link down can you check the website please :)::) All of them have different prices and text contents according to customfield value how can ı do that ? Is there any way to do this @brian! https://www.muvhost.com/cart.php?a=add&pid=67&customfield[77]=1101435 https://www.muvhost.com/cart.php?a=add&pid=67&customfield[77]=1121496 https://www.muvhost.com/cart.php?a=add&pid=67&customfield[77]=1097734
  10. Dear All, Is there any way to manage many product using a single specific product.I mean there is a single product exits in whmcs.Assume that the product id is 45 and we manage many product using this product ı saw this example in some website which is like cart.php?a=add&pid=67&customfield[77]=1101435 cart.php?a=add&pid=67&customfield[77]=1101496 cart.php?a=add&pid=67&customfield[77]=1121496 I do not understand that how a single product has many prices and text feature areas . Doesn't any problem occur in whmcs ? Can you explain this issue @brian! and dear community members ?
  11. @brian! can you explain this in a small example 🙂
  12. Hi everyone, There is an issue that ı could not solve in a few days.How can ı get the server informations that ı add to servers to addon modules not to provisioning modules. Is there any parameter to get these informations ?
  13. it is custom payment gateway it just gives an error when ı select the save my credit card option.
  • 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