Jump to content

cstech

Members
  • Content count

    31
  • Joined

  • Last visited

Community Reputation

0 Neutral

About cstech

  • Rank
    Member

Recent Profile Visitors

181 profile views
  1. Woow it work! finaly the variables {$productgroupname} {$productgrouphead} {$productgrouptag} should not be placed anywhere, their places should be inside with commenting some natives variables of premium_comparison. The last and not realy required to have the exact premium_comparaison like a cart in the home page is the format of price. The currency format displayed like stored in the database exemple 00000.00 <div class="txt-center"> <h3 id="headline"> {$productgrouphead} <!-- {if $productGroup.headline} {$productGroup.headline} {else} {$productGroup.name} {/if} --> </h3> {if $productGroup.tagline} <h5 id="tagline"> {$productgrouptag} <!-- {$productGroup.tagline} --> </h5> {/if} {if $errormessage} <div class="alert alert-danger"> {$errormessage} </div> {/if} </div> I really dream to had a coffee with you @brian! @steven99, thank you infinite
  2. Je vous en prie Monsieur @brian! Your help is so great and appreciated much. Thank you I feel I need some time and more concentration to achieve this, because I use at least 3 hook to reproduce the all permium_comparaison orderform on six homepage template.
  3. Now the debug work here the screenshot. But if I activate the hook and adding on the buttom of homepage.tpl {$productgroupname} {$productgrouphead}{$productgrouptag} I don't get anythings, no error, no debug pop up and no products group shown
  4. cstech

    VPS with Plesk Admin Edition

    I should buy a vps with Plesk admin licene and test it With this Licence I should creat a packages name, I mean that is good to resell shared plesk hosting, and what me i want to achieve is resell a VPS & Plesk admin edition to access the vps and managing 10 websites. Thank you so much for your suggestions
  5. cstech

    VPS with Plesk Admin Edition

    The thing I hope to achieve with WHMCS is: I buy a VPS with Plesk Web Admin Edition and set it as a server and product in WHMCS to automate the welcome VPS email for client. And do the same for each order I receive through my WHMCS (Bought it, set it in WHMCS and send it to client) It is logic to do this with WHMCS? Thank you for any help
  6. I tested the hook with adding {$productgroupname} {$productgrouphead}{$productgrouptag} {debug} at the end of the homepage.tpl in six native template, no things happend nor error nor separted windows opened! I use chrome v 72.0.3626.119 with adblock disabled. All methodes provided by @brian! worked so good, except this for automated translation of name group, products headline and tagline on homepage!
  7. Nothings happened! Please can show me how
  8. Thank you for your all code, unfortunately don't work for me! no error and no hook result. it is your code ok with PHP v 5.6.30?
  9. I deleted all other hooks. I created a new hook with your exact syntax <?php use WHMCS\Product\Group; function hook_getProductGroups($vars){ $myproductgroup = Group::find('6'); return array("productgroup" => $myproductgroup); } add_hook("ClientAreaPageHome", 1, "hook_getProductGroups"); And I added on the homepage.tpl {$productgroup->name} {$productgroup->headline} {$productgroup->tagline} Now error shown and no hook results
  10. <?php use WHMCS\Product\Group; function hook_ProductGroupsLang($vars){ $productgroup = Group::find('6'); return array("productgroups" => $productgroup); } add_hook("ClientAreaPageHome", 1, "hook_ProductGroupsLang"); I do it, I shoud backup my file before doing it. Unfortunately WHMCS don't give us a version to use on local server for trainings
  11. cstech

    VPS with Plesk Admin Edition

    @steven99 I am not so good with english. Hope you understand me?
  12. I got this error exception 'Whoops\Exception\ErrorException' with message 'syntax error, unexpected 'use' (T_USE)' in /xxx/xxx/public_html/client/includes/hooks/grouplang.php:3 Stack trace: #0 /xxx/xxx/public_html/client/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(4, 'syntax error, u...', '/xxx/xxx/...', 3) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} The line 3 in the hook contains use WHMCS\Product\Group;
  13. I created another one with another fuction name I just enabled it it!
  14. Surly you took a good coffee at this time ✊💪 I try to configure the far simpler methode. Unfortunately don't want to work for me As a Hook <?php use WHMCS\Product\Group; function hook_getProductGroups($vars){ $myproductgroup = Group::find('6'); return array("productgroup" => $myproductgroup); } add_hook("ClientAreaPageHome", 1, "hook_getProductGroups"); With on homepage.tpl {$productgroup->name} {$productgroup->headline} {$productgroup->tagline} I got error (.... something went wrong and we couldn't process your request)
×

Important Information

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