Jump to content

SametALMDR

Senior Member
  • Content count

    20
  • 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. 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 ?
  2. SametALMDR

    How to manage many product using a single product

    Thanks a lot @brian! 🙂
  3. SametALMDR

    How to manage many product using a single product

    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; });
  4. SametALMDR

    How to manage many product using a single product

    yeah most probably there is an override hooks exist but ı dont understand that how the price does not create any problem in the background
  5. SametALMDR

    How to manage many product using a single product

    https://www.muvhost.com/almanya-lokasyon-dedicated-sunucular these are the products that ı send to you as a link
  6. SametALMDR

    How to manage many product using a single product

    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
  7. 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 ?
  8. SametALMDR

    whmcs module how to get server informations

    @brian! can you explain this in a small example 🙂
  9. 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 ?
  10. SametALMDR

    WHMCS 7.8 Creditcard runtime error

    it is custom payment gateway it just gives an error when ı select the save my credit card option.
  11. SametALMDR

    WHMCS 7.8 Creditcard runtime error

    yeah it's still the same
  12. Hi , Today ı was trying to pay my invoice via credit card but ı got an error such as like in the attachment then ı solve the problem without saving the creditcard but ı guess this is a bug in new version.Is there anyone got an error ? Can you explain that situation our moderators ? because ı want to save my creditcard and our customers pleasee :(
  13. SametALMDR

    Check the menuitem disable or not

    ı just wanted to know is there any variable that checking existence the security question enable or not. Thanks Brian 🙂
  14. SametALMDR

    Check the menuitem disable or not

    @brian! 🙂
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated